| 1 | <?php |
||
| 6 | class AddStackIdToNotifications extends Migration |
||
| 7 | { |
||
| 8 | /** |
||
| 9 | * Run the migrations. |
||
| 10 | * |
||
| 11 | * @return void |
||
| 12 | */ |
||
| 13 | public function up() |
||
| 14 | { |
||
| 15 | Schema::table('notifications', function (Blueprint $table) { |
||
| 16 | $table->integer('stack_id')->unsigned()->nullable()->after('expire_time'); |
||
| 17 | }); |
||
| 18 | } |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Reverse the migrations. |
||
| 22 | * |
||
| 23 | * @return void |
||
| 24 | */ |
||
| 25 | public function down() |
||
| 26 | { |
||
| 27 | Schema::table('notifications', function (Blueprint $table) { |
||
| 28 | $table->dropColumn('stack_id'); |
||
| 29 | }); |
||
| 30 | } |
||
| 31 | } |
||
| 32 |