Skip to content

Commit 6a545db

Browse files
authored
Update export-laravel-5-migrations.py
Corrected missing ] on dropForeign
1 parent 38fcb55 commit 6a545db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

export-laravel-5-migrations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def export_schema(out, schema, is_main_schema):
200200
if schema_table == 0:
201201
migrations[tbl.name].append(' Schema::table(\'%s\', function (Blueprint $table) {\n' % (item['table']))
202202
schema_table = 1
203-
migrations[tbl.name].append(' $table->dropForeign([\'%s\');\n' % (item['name']))
203+
migrations[tbl.name].append(' $table->dropForeign([\'%s\']);\n' % (item['name']))
204204
if schema_table == 1:
205205
migrations[tbl.name].append(" });\n")
206206
migrations[tbl.name].append('\n')

0 commit comments

Comments
 (0)