chg: [sharingGroupOrgs] Renamed table back to original name

pull/34/head
mokaddem 2020-11-25 16:36:59 +01:00
parent 54c513613e
commit 7f067acfa2
3 changed files with 3 additions and 2 deletions

View File

@ -9,7 +9,7 @@ DROP TABLE IF EXISTS organisation_encryption_keys;
DROP TABLE IF EXISTS organisations;
DROP TABLE IF EXISTS roles;
DROP TABLE IF EXISTS sharing_groups;
DROP TABLE IF EXISTS organisations_sharing_groups;
DROP TABLE IF EXISTS sgo;
DROP TABLE IF EXISTS tags;
DROP TABLE IF EXISTS user_keys;
DROP TABLE IF EXISTS users;

View File

@ -309,7 +309,7 @@ CREATE TABLE `sharing_groups` (
KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
CREATE TABLE `organisations_sharing_groups` (
CREATE TABLE `sgo` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`sharing_group_id` int(10) unsigned NOT NULL,
`organisation_id` int(10) unsigned NOT NULL,

View File

@ -25,6 +25,7 @@ class SharingGroupsTable extends AppTable
[
'className' => 'Organisations',
'foreignKey' => 'sharing_group_id',
'joinTable' => 'sgo',
'targetForeignKey' => 'organisation_id'
]
);