Skip to content

Commit a019aa5

Browse files
committed
feat: Wrap table name into double quotes in dumps
refs: #87
1 parent a22d3a2 commit a019aa5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stubs/dumps/mysql.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@foreach($inserts as $entities)
22
@foreach($entities['items'] as $entity)
3-
INSERT INTO {{$entities['name']}}({!! implode(', ', $entity['fields']) !!}, created_at, updated_at) VALUES
3+
INSERT INTO "{{$entities['name']}}"({!! implode(', ', $entity['fields']) !!}, created_at, updated_at) VALUES
44
({!! implode(', ', $entity['values']) !!}, '2016-10-20 11:05:00', '2016-10-20 11:05:00');
55
@endforeach
66

stubs/dumps/pgsql.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@foreach($inserts as $entities)
22
@foreach($entities['items'] as $entity)
3-
INSERT INTO {{$entities['name']}}({!! implode(', ', $entity['fields']) !!}, created_at, updated_at) VALUES
3+
INSERT INTO "{{$entities['name']}}"({!! implode(', ', $entity['fields']) !!}, created_at, updated_at) VALUES
44
({!! implode(', ', $entity['values']) !!}, '2016-10-20 11:05:00', '2016-10-20 11:05:00');
55
@endforeach
66

0 commit comments

Comments
 (0)