Skip to content

Commit 9774ab4

Browse files
authored
Merge pull request #3 from briscula/master
Syntax error when cheking for length
2 parents 21a2f0a + 249f32c commit 9774ab4

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
@@ -114,7 +114,7 @@ def export_schema(out, schema, is_main_schema):
114114
if col.length > -1:
115115
col_data = '\', %s' % (str(col.length))
116116

117-
if col.name == 'remember_token' and typesDict[col_type] == 'string' and str(col.length) = 100:
117+
if col.name == 'remember_token' and typesDict[col_type] == 'string' and str(col.length) == 100:
118118
migrations[tbl.name].append(' $table->rememberToken();\n')
119119
elif(typesDict[col_type]) :
120120
migrations[tbl.name].append(' $table->%s(\'%s%s)' % (typesDict[col_type], col.name, col_data))

0 commit comments

Comments
 (0)