Skip to content

Commit e084608

Browse files
committed
Moved multiple variables of the same value to one line
1 parent 7510815 commit e084608

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

export-laravel-5-migrations.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,7 @@ def export_schema(out, schema, is_main_schema):
5454
migrations[tbl.name].append(' {\n')
5555
migrations[tbl.name].append(' Schema::create(\'%s\', function (Blueprint $table) {\n' % (tbl.name))
5656

57-
created_at = False
58-
created_at_nullable = False
59-
updated_at = False
60-
updated_at_nullable = False
61-
deleted_at = False
62-
timestamps = False
63-
timestamps_nullable = False
57+
created_at = created_at_nullable = updated_at = updated_at_nullable = deleted_at = timestamps = timestamps_nullable = False
6458

6559
for col in tbl.columns:
6660
if col.name == 'created_at':

0 commit comments

Comments
 (0)