Skip to content

Commit 427aff6

Browse files
authored
Merge pull request #249 from cybercog/feature/migrations-drop-only-exists-tables
Drop only exists database tables
2 parents c77117d + f3e6200 commit 427aff6

3 files changed

+3
-3
lines changed

migrations/2014_10_28_175635_create_threads_table.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ public function up()
2828
*/
2929
public function down()
3030
{
31-
Schema::drop(Models::table('threads'));
31+
Schema::dropIfExists(Models::table('threads'));
3232
}
3333
}

migrations/2014_10_28_175710_create_messages_table.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ public function up()
3030
*/
3131
public function down()
3232
{
33-
Schema::drop(Models::table('messages'));
33+
Schema::dropIfExists(Models::table('messages'));
3434
}
3535
}

migrations/2014_10_28_180224_create_participants_table.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ public function up()
3030
*/
3131
public function down()
3232
{
33-
Schema::drop(Models::table('participants'));
33+
Schema::dropIfExists(Models::table('participants'));
3434
}
3535
}

0 commit comments

Comments
 (0)