Skip to content

Commit

Permalink
Add slug migration
Browse files Browse the repository at this point in the history
  • Loading branch information
@enwerro committed Mar 20, 2024
1 parent 4246316 commit b47df1e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ALTER TABLE tbl_event_type ADD COLUMN slug NOT NULL VARCHAR(255) UNIQUE, ADD CONSTRAINT unique_slug UNIQUE (slug);
ALTER TABLE tbl_event_type ADD COLUMN slug VARCHAR(255) NOT NULL UNIQUE;

CREATE INDEX slug_index ON tbl_event_type (slug);

0 comments on commit b47df1e

Please sign in to comment.