user-role-cluster #761

Merged
philipp merged 9 commits from user-role-cluster into main 2024-10-11 12:39:24 +02:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 10d220773b - Show all commits

View File

@ -222,7 +222,7 @@ CREATE TABLE IF NOT EXISTS "distance" (
);
CREATE TRIGGER prevent_multiple_roles_same_cluster
CREATE TRIGGER IF NOT EXISTS prevent_multiple_roles_same_cluster
BEFORE INSERT ON user_role
BEGIN
SELECT CASE

View File

@ -5,7 +5,7 @@ INSERT INTO user(name) VALUES('Philipp');
INSERT INTO "user_role" (user_id, role_id) VALUES((SELECT id from user where name = 'Philipp'),(SELECT id FROM role where name = 'Donau Linz'));
ALTER TABLE "role" ADD COLUMN "cluster" text;
CREATE TRIGGER prevent_multiple_roles_same_cluster
CREATE TRIGGER IF NOT EXISTS prevent_multiple_roles_same_cluster
BEFORE INSERT ON user_role
BEGIN
SELECT CASE