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