We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5855d73 commit bc1b892Copy full SHA for bc1b892
crates/kitsune-db/migrations/2023-12-16-192941_initial/up.sql
@@ -636,6 +636,14 @@ CREATE TABLE roles
636
updated_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
637
);
638
639
+-- UNIQUE constraints
640
+
641
+ALTER TABLE roles
642
+ ADD CONSTRAINT "uk-roles-name"
643
+ UNIQUE (name);
644
645
+-- Register triggers
646
647
SELECT diesel_manage_updated_at('roles');
648
649
-- END "roles" TABLE
0 commit comments