Skip to content

Commit

Permalink
fix: don't override operator id when inserting dev data
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieu-foucault committed Jan 12, 2022
1 parent ed0c774 commit 7a110d8
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions schema/data/dev/002_cif_operator.sql
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;

0 comments on commit 7a110d8

Please sign in to comment.