Skip to content

Commit c819302

Browse files
Arkaniusroshangautam
authored andcommitted
refactor(migrations) : split 'tasks' down migration for each column to avoid breaking tests in sqlite
Here is an example of how to fix the possible issue refered by #39
1 parent 140b39b commit c819302

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

database/migrations/2017_08_26_083622_alter_tasks_table_add_notifications_fields.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ public function down()
2828
{
2929
Schema::table('tasks', function (Blueprint $table) {
3030
$table->dropColumn('notification_phone_number');
31+
});
32+
33+
Schema::table('tasks', function (Blueprint $table) {
3134
$table->dropColumn('notification_slack_webhook');
3235
});
3336
}

0 commit comments

Comments
 (0)