-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #119 from RonasIT/fix-prepare-sequence
Fix prepare sequence
- Loading branch information
Showing
2 changed files
with
8 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
tests/fixtures/FixturesTraitTest/prepare_sequences/sequences.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
SELECT setval('articles_id_seq', (select coalesce(max(id), 1) from articles), (case when (select max(id) from articles) is NULL then false else true end)); | ||
SELECT setval('workers_id_seq', (select coalesce(max(id), 1) from workers), (case when (select max(id) from workers) is NULL then false else true end)); | ||
SELECT setval('groups_id_seq', (select coalesce(max(id), 1) from groups), (case when (select max(id) from groups) is NULL then false else true end)); | ||
SELECT setval('homes_id_seq', (select coalesce(max(id), 1) from homes), (case when (select max(id) from homes) is NULL then false else true end)); | ||
SELECT setval('users_id_seq', (select coalesce(max(id), 1) from users), (case when (select max(id) from users) is NULL then false else true end)); | ||
SELECT setval('telescope_entries_sequence_seq', (select coalesce(max(sequence), 1) from telescope_entries), (case when (select max(sequence) from telescope_entries) is NULL then false else true end)); | ||
SELECT setval('articles_id_seq', (select coalesce(max(id), 1) from public.articles), (case when (select max(id) from public.articles) is NULL then false else true end)); | ||
SELECT setval('workers_id_seq', (select coalesce(max(id), 1) from public.workers), (case when (select max(id) from public.workers) is NULL then false else true end)); | ||
SELECT setval('groups_id_seq', (select coalesce(max(id), 1) from public.groups), (case when (select max(id) from public.groups) is NULL then false else true end)); | ||
SELECT setval('homes_id_seq', (select coalesce(max(id), 1) from public.homes), (case when (select max(id) from public.homes) is NULL then false else true end)); | ||
SELECT setval('users_id_seq', (select coalesce(max(id), 1) from public.users), (case when (select max(id) from public.users) is NULL then false else true end)); | ||
SELECT setval('telescope_entries_sequence_seq', (select coalesce(max(sequence), 1) from public.telescope_entries), (case when (select max(sequence) from public.telescope_entries) is NULL then false else true end)); |