add index for name in scene table to force uniqueness.
This commit is contained in:
@@ -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
|
||||||
Reference in New Issue
Block a user