| 1 | <?php |
||
| 16 | class LaravelUriTrackingMigration extends Migration |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * Run the migrations. |
||
| 20 | * |
||
| 21 | * @return void |
||
| 22 | */ |
||
| 23 | public function up() |
||
| 24 | { |
||
| 25 | Schema::create('trackable_resources', function (Blueprint $table) { |
||
| 26 | $table->string('id', 7)->primaryKey(); |
||
| 27 | $table->string('type'); |
||
| 28 | $table->text('resource')->nullable(); |
||
| 29 | $table->text('meta')->nullable(); |
||
| 30 | $table->timestamps(); |
||
| 31 | }); |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Reverse the migrations. |
||
| 36 | * |
||
| 37 | * @return void |
||
| 38 | */ |
||
| 39 | public function down() |
||
| 43 | } |
||
| 44 |