File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -27,18 +27,18 @@ class {{ className }} implements Installation
2727 public function up (Schema $schema , QueryBag $queries )
2828 {
2929 /* * Tables generation **/
30- {% for table in schema . tables if allowedTables is empty or allowedTables [table . name ] is defined % }
30+ {% for table in schema . tables if allowedTables is not empty and allowedTables [table . name ] is defined % }
3131 $this -> {{ ' create' ~ table . name | replace({' _' : ' ' })| title | replace({' ' : ' ' }) ~ ' Table' }}($schema );
3232{% endfor % }
3333
3434 /* * Foreign keys generation **/
35- {% for table in schema . tables if allowedTables is empty or allowedTables [table . name ] is defined % }
35+ {% for table in schema . tables if allowedTables is not empty and allowedTables [table . name ] is defined % }
3636{% if table . ForeignKeys is not empty % }
3737 $this -> {{ ' add' ~ table . name | replace({' _' : ' ' })| title | replace({' ' : ' ' }) ~ ' ForeignKeys' }}($schema );
3838{% endif % }
3939{% endfor % }
4040 }
41- {% for table in schema . tables if allowedTables is empty or allowedTables [table . name ] is defined % }
41+ {% for table in schema . tables if allowedTables is not empty and allowedTables [table . name ] is defined % }
4242{% set methodName = ' create' ~ table . name | replace({' _' : ' ' })| title | replace({' ' : ' ' }) ~ ' Table' % }
4343
4444 /**
@@ -64,7 +64,7 @@ class {{ className }} implements Installation
6464{% endfor % }
6565 }
6666{% endfor % }
67- {% for table in schema . tables if allowedTables is empty or allowedTables [table . name ] is defined -% }
67+ {% for table in schema . tables if allowedTables is not empty and allowedTables [table . name ] is defined -% }
6868{% set methodName = ' add' ~ table . name | replace({' _' : ' ' })| title | replace({' ' : ' ' }) ~ ' ForeignKeys' % }
6969{% if table . ForeignKeys is not empty % }
7070
You can’t perform that action at this time.
0 commit comments