Skip to content

Commit

Permalink
alter schema table with new enum value for backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Big-Vi committed Jul 14, 2023
1 parent 79a7dbb commit 92dcdb2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ func createTables(MetadataDbClient MetadataStorage) error {
ALTER TABLE schemas DROP CONSTRAINT IF EXISTS name;
ALTER TABLE schemas DROP CONSTRAINT IF EXISTS schemas_name_tenant_name_key;
ALTER TABLE schemas ADD CONSTRAINT schemas_name_tenant_name_key UNIQUE(name, tenant_name);
ALTER TYPE enum_type ADD VALUE 'avro';
END IF;
END $$;`

Expand Down

0 comments on commit 92dcdb2

Please sign in to comment.