Skip to content

Commit

Permalink
Update insert statement
Browse files Browse the repository at this point in the history
  • Loading branch information
mddilley committed Nov 6, 2024
1 parent 285f4d9 commit e6612b5
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
INSERT INTO moped_proj_work_activity_status ("key", "name") VALUES
('active', 'Active');
INSERT INTO moped_proj_work_activity_status (key, name)
SELECT
'active',
'Active'
WHERE NOT EXISTS (
SELECT *
FROM
moped_proj_work_activity_status
WHERE (key, name) = ('active', 'Active')
);

0 comments on commit e6612b5

Please sign in to comment.