-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: don't override operator id when inserting dev data
- Loading branch information
1 parent
ed0c774
commit 7a110d8
Showing
1 changed file
with
4 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,9 @@ | ||
begin; | ||
|
||
insert into cif.operator (id, legal_name, trade_name, bc_registry_id) | ||
overriding system value | ||
insert into cif.operator (legal_name, trade_name, bc_registry_id) | ||
values | ||
|
||
(1, 'first operator legal name', 'first operator trade name', 'AB1234567'), -- pragma: allowlist secret | ||
(2, 'second operator legal name', 'second operator lorem ipsum dolor sit amet limited', 'BC1234567'), -- pragma: allowlist secret | ||
(3, 'third operator legal name', 'third operator trade name', 'EF3456789') -- pragma: allowlist secret | ||
|
||
on conflict (id) do update set | ||
legal_name = excluded.legal_name, | ||
trade_name = excluded.trade_name, | ||
bc_registry_id = excluded.bc_registry_id; | ||
('first operator legal name', 'first operator trade name', 'AB1234567'), | ||
('second operator legal name', 'second operator lorem ipsum dolor sit amet limited', 'BC1234567'), | ||
('third operator legal name', 'third operator trade name', 'EF3456789'); | ||
|
||
commit; |