Skip to content

Commit e1bdf71

Browse files
committed
fix script
1 parent 132c9d6 commit e1bdf71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/resources/db/migration/V6.6.0.1.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ CREATE TABLE IF NOT EXISTS curationstatus (
1010
);
1111

1212
-- Migrate existing data from datasetversion.externalstatuslabel to curationstatus if it hasn't been done already
13-
DO $
13+
DO $$
1414
BEGIN
1515
IF EXISTS (SELECT 1 FROM information_schema.columns WHERE table_name = 'datasetversion' AND column_name = 'externalstatuslabel') THEN
1616
INSERT INTO curationstatus (label, datasetversion_id, authenticateduser_id, createtime)
@@ -27,4 +27,4 @@ BEGIN
2727
ALTER TABLE datasetversion DROP COLUMN IF EXISTS externalstatuslabel;
2828
END IF;
2929
END
30-
$;
30+
$$;

0 commit comments

Comments
 (0)