mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-07 15:54:26 +02:00
[Database 1526] Add new user-gserver table
- Add Entity, Collection, Factory and Repository classes for it
This commit is contained in:
parent
2ba3069b07
commit
9bbb55b2bb
8 changed files with 342 additions and 2 deletions
14
database.sql
14
database.sql
|
@ -1,6 +1,6 @@
|
|||
-- ------------------------------------------
|
||||
-- Friendica 2023.09-dev (Giant Rhubarb)
|
||||
-- DB_UPDATE_VERSION 1525
|
||||
-- DB_UPDATE_VERSION 1526
|
||||
-- ------------------------------------------
|
||||
|
||||
|
||||
|
@ -101,6 +101,18 @@ CREATE TABLE IF NOT EXISTS `user` (
|
|||
FOREIGN KEY (`parent-uid`) REFERENCES `user` (`uid`) ON UPDATE RESTRICT ON DELETE CASCADE
|
||||
) DEFAULT COLLATE utf8mb4_general_ci COMMENT='The local users';
|
||||
|
||||
--
|
||||
-- TABLE user-gserver
|
||||
--
|
||||
CREATE TABLE IF NOT EXISTS `user-gserver` (
|
||||
`uid` mediumint unsigned NOT NULL DEFAULT 0 COMMENT 'Owner User id',
|
||||
`gsid` int unsigned NOT NULL DEFAULT 0 COMMENT 'Gserver id',
|
||||
`ignored` boolean NOT NULL DEFAULT '0' COMMENT 'server accounts are ignored for the user',
|
||||
PRIMARY KEY(`uid`,`gsid`),
|
||||
FOREIGN KEY (`uid`) REFERENCES `user` (`uid`) ON UPDATE RESTRICT ON DELETE CASCADE,
|
||||
FOREIGN KEY (`gsid`) REFERENCES `gserver` (`id`) ON UPDATE RESTRICT ON DELETE CASCADE
|
||||
) DEFAULT COLLATE utf8mb4_general_ci COMMENT='User settings about remote servers';
|
||||
|
||||
--
|
||||
-- TABLE item-uri
|
||||
--
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue