update db schemas

This commit is contained in:
Mario
2021-12-17 15:30:26 +01:00
parent 91cea1f28a
commit 32a9eaf3b6
2 changed files with 5 additions and 1 deletions

View File

@@ -37,6 +37,7 @@ CREATE TABLE IF NOT EXISTS `abook` (
`abook_incl` text NOT NULL,
`abook_excl` text NOT NULL,
`abook_instance` text NOT NULL,
`abook_role` char(191) NOT NULL DEFAULT '',
PRIMARY KEY (`abook_id`),
KEY `abook_account` (`abook_account`),
KEY `abook_channel` (`abook_channel`),
@@ -58,7 +59,8 @@ CREATE TABLE IF NOT EXISTS `abook` (
KEY `abook_unconnected` (`abook_unconnected`),
KEY `abook_self` (`abook_self`),
KEY `abook_not_here` (`abook_not_here`),
KEY `abook_feed` (`abook_feed`)
KEY `abook_feed` (`abook_feed`),
KEY `abook_role` (`abook_role`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE IF NOT EXISTS `account` (

View File

@@ -37,6 +37,7 @@ CREATE TABLE "abook" (
"abook_incl" TEXT NOT NULL DEFAULT '',
"abook_excl" TEXT NOT NULL DEFAULT '',
"abook_instance" TEXT NOT NULL DEFAULT '',
"abook_role" varchar(64) NOT NULL DEFAULT '',
PRIMARY KEY ("abook_id")
);
create index "abook_account" on abook ("abook_account");
@@ -61,6 +62,7 @@ CREATE TABLE "abook" (
create index "abook_dob" on abook ("abook_dob");
create index "abook_connected" on abook ("abook_connected");
create index "abook_channel_closeness" on abook ("abook_channel", "abook_closeness");
create index "abook_role" on abook ("abook_role");
CREATE TABLE "account" (
"account_id" serial NOT NULL,