Browse Source

add index for name in scene table to force uniqueness.

feature-colorvalue2
Gisle Aune 2 years ago
parent
commit
44bd327a71
  1. 9
      scripts/20220211172444_scene_index_name.sql

9
scripts/20220211172444_scene_index_name.sql

@ -0,0 +1,9 @@
-- +goose Up
-- +goose StatementBegin
CREATE UNIQUE INDEX scene_name ON scene (name);
-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
DROP INDEX IF EXISTS scene_name;
-- +goose StatementEnd
Loading…
Cancel
Save