diff --git a/migrations/mysql/2022-07-27-110000_add_group_support/up.sql b/migrations/mysql/2022-07-27-110000_add_group_support/up.sql index ccfe600b..6d40638a 100644 --- a/migrations/mysql/2022-07-27-110000_add_group_support/up.sql +++ b/migrations/mysql/2022-07-27-110000_add_group_support/up.sql @@ -10,13 +10,13 @@ CREATE TABLE `groups` ( CREATE TABLE groups_users ( groups_uuid CHAR(36) NOT NULL REFERENCES `groups` (uuid), - users_organizations_uuid VARCHAR(36) NOT NULL REFERENCES users_organizations (uuid), + users_organizations_uuid VARCHAR(36) NOT NULL REFERENCES users_organizations (uuid), UNIQUE (groups_uuid, users_organizations_uuid) ); CREATE TABLE collections_groups ( collections_uuid VARCHAR(40) NOT NULL REFERENCES collections (uuid), - groups_uuid CHAR(36) NOT NULL REFERENCES `groups` (uuid), + groups_uuid CHAR(36) NOT NULL REFERENCES `groups` (uuid), read_only BOOLEAN NOT NULL, hide_passwords BOOLEAN NOT NULL, UNIQUE (collections_uuid, groups_uuid) diff --git a/migrations/postgresql/2022-07-27-110000_add_group_support/up.sql b/migrations/postgresql/2022-07-27-110000_add_group_support/up.sql index 8a3858bd..5eed1df3 100644 --- a/migrations/postgresql/2022-07-27-110000_add_group_support/up.sql +++ b/migrations/postgresql/2022-07-27-110000_add_group_support/up.sql @@ -10,13 +10,13 @@ CREATE TABLE groups ( CREATE TABLE groups_users ( groups_uuid CHAR(36) NOT NULL REFERENCES groups (uuid), - users_organizations_uuid VARCHAR(36) NOT NULL REFERENCES users_organizations (uuid), + users_organizations_uuid VARCHAR(36) NOT NULL REFERENCES users_organizations (uuid), PRIMARY KEY (groups_uuid, users_organizations_uuid) ); CREATE TABLE collections_groups ( collections_uuid VARCHAR(40) NOT NULL REFERENCES collections (uuid), - groups_uuid CHAR(36) NOT NULL REFERENCES groups (uuid), + groups_uuid CHAR(36) NOT NULL REFERENCES groups (uuid), read_only BOOLEAN NOT NULL, hide_passwords BOOLEAN NOT NULL, PRIMARY KEY (collections_uuid, groups_uuid) diff --git a/migrations/sqlite/2022-07-27-110000_add_group_support/up.sql b/migrations/sqlite/2022-07-27-110000_add_group_support/up.sql index 25ebdacd..0523c760 100644 --- a/migrations/sqlite/2022-07-27-110000_add_group_support/up.sql +++ b/migrations/sqlite/2022-07-27-110000_add_group_support/up.sql @@ -10,13 +10,13 @@ CREATE TABLE groups ( CREATE TABLE groups_users ( groups_uuid TEXT NOT NULL REFERENCES groups (uuid), - users_organizations_uuid TEXT NOT NULL REFERENCES users_organizations (uuid), + users_organizations_uuid TEXT NOT NULL REFERENCES users_organizations (uuid), UNIQUE (groups_uuid, users_organizations_uuid) ); CREATE TABLE collections_groups ( collections_uuid TEXT NOT NULL REFERENCES collections (uuid), - groups_uuid TEXT NOT NULL REFERENCES groups (uuid), + groups_uuid TEXT NOT NULL REFERENCES groups (uuid), read_only BOOLEAN NOT NULL, hide_passwords BOOLEAN NOT NULL, UNIQUE (collections_uuid, groups_uuid)