Skip to content

Commit a22ba8c

Browse files
committed
Added support for rememberToken()
1 parent e084608 commit a22ba8c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

export-laravel-5-migrations.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,9 @@ def export_schema(out, schema, is_main_schema):
114114
if col.length > -1:
115115
col_data = '\', %s' % (str(col.length))
116116

117-
if(typesDict[col_type]) :
117+
if col.name == 'remember_token' and typesDict[col_type] == 'string' and str(col.length) = 100:
118+
migrations[tbl.name].append(' $table->rememberToken();\n'
119+
elif(typesDict[col_type]) :
118120
migrations[tbl.name].append(' $table->%s(\'%s%s)' % (typesDict[col_type], col.name, col_data))
119121
if typesDict[col_type] == 'integer' and 'UNSIGNED' in col.flags:
120122
migrations[tbl.name].append('->unsigned()')

0 commit comments

Comments
 (0)