feat: new table for the role adder
This commit is contained in:
parent
ec74dc0aa7
commit
2aad895bb3
1 changed files with 11 additions and 0 deletions
11
db/migrations/6_role-adder.sql
Normal file
11
db/migrations/6_role-adder.sql
Normal file
|
@ -0,0 +1,11 @@
|
|||
CREATE TABLE IF NOT EXISTS roles_adder (
|
||||
server integer not null,
|
||||
role_a integer not null,
|
||||
role_b integer not null,
|
||||
role_c integer not null,
|
||||
PRIMARY KEY(server,role_a,role_b,role_c)
|
||||
);
|
||||
CREATE INDEX IF NOT EXISTS index_roles_adder_server ON roles_adder (server);
|
||||
CREATE INDEX IF NOT EXISTS index_roles_adder_from ON roles_adder (role_a,role_b);
|
||||
CREATE INDEX IF NOT EXISTS index_roles_adder_to ON roles_adder (role_c);
|
||||
CREATE INDEX IF NOT EXISTS index_roles_adder_search ON roles_adder (server,role_a,role_b);
|
Loading…
Reference in a new issue