add index for name in scene table to force uniqueness.

This commit is contained in:
2022-02-14 22:03:28 +01:00
parent cedd0d1d28
commit 44bd327a71
@@ -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