chg: [sharingGroupOrgs] Renamed table back to original name
parent
54c513613e
commit
7f067acfa2
|
@ -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;
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -25,6 +25,7 @@ class SharingGroupsTable extends AppTable
|
|||
[
|
||||
'className' => 'Organisations',
|
||||
'foreignKey' => 'sharing_group_id',
|
||||
'joinTable' => 'sgo',
|
||||
'targetForeignKey' => 'organisation_id'
|
||||
]
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue