Skip to content

Commit

Permalink
#945 | Add table exists check to handle error during test db create s…
Browse files Browse the repository at this point in the history
…cenario
  • Loading branch information
himeshr committed Apr 19, 2023
1 parent 20c7dc1 commit 902cbd8
Showing 1 changed file with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1 +1,15 @@
update schema_version set checksum = 1576932710 where version = '1.282' and checksum=-1686581224;
DO $$
BEGIN
IF EXISTS
( SELECT 1
FROM information_schema.tables
WHERE table_schema = 'public'
AND table_name = 'schema_version'
)
THEN
update schema_version
set checksum = 1576932710
where version = '1.282' and checksum=-1686581224;
END IF ;
END
$$ ;

0 comments on commit 902cbd8

Please sign in to comment.