Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Traits/FixturesTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public function getClearPsqlDatabaseQuery(array $tables, array $except = ['migra
if (in_array($table['name'], $except)) {
return '';
} else {
return "TRUNCATE {$table['name']} RESTART IDENTITY CASCADE; \n";
return "TRUNCATE \"{$table['name']}\" RESTART IDENTITY CASCADE;\n";
}
});
}
Expand All @@ -152,7 +152,7 @@ public function getClearMySQLDatabaseQuery(array $tables, array $except = ['migr
if (in_array($table['name'], $except)) {
return '';
} else {
return "TRUNCATE TABLE {$table['name']}; \n";
return "TRUNCATE TABLE \"{$table['name']}\";\n";
}
});

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SET FOREIGN_KEY_CHECKS = 0;
TRUNCATE TABLE users;
TRUNCATE TABLE groups;
TRUNCATE TABLE "users";
TRUNCATE TABLE "groups";
SET FOREIGN_KEY_CHECKS = 1;
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
TRUNCATE users RESTART IDENTITY CASCADE;
TRUNCATE groups RESTART IDENTITY CASCADE;
TRUNCATE "users" RESTART IDENTITY CASCADE;
TRUNCATE "groups" RESTART IDENTITY CASCADE;