Skip to content

Commit

Permalink
Change migration
Browse files Browse the repository at this point in the history
  • Loading branch information
maplant committed May 20, 2024
1 parent 01b787c commit 26d7c25
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions mobile_verifier/migrations/33_data_sets.sql
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
DROP TYPE IF EXISTS data_set_status;
DO $$ BEGIN
CREATE TYPE data_set_status AS enum (
'pending',
'downloaded',
'processed'
);
EXCEPTION
WHEN duplicate_object THEN null;
END $$;

DROP TYPE IF EXISTS data_set_type;
DO $$ BEGIN
CREATE TYPE data_set_type AS enum (
'urbanization',
'footfall',
'landtype'
);
EXCEPTION
WHEN duplicate_object THEN null;
END $$;

CREATE TABLE IF NOT EXISTS hex_assignment_data_set_status (
filename TEXT PRIMARY KEY,
Expand Down

0 comments on commit 26d7c25

Please sign in to comment.