diff options
author | Mario <mario@mariovavti.com> | 2021-12-17 15:30:26 +0100 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-12-17 15:30:26 +0100 |
commit | 32a9eaf3b6a68626580078a3302f8dd8e85eb165 (patch) | |
tree | daaeaebb112a3efab55ad0874740afcd5f00b08f /install | |
parent | 91cea1f28a8734f3fbab38260cc301026df7b56b (diff) | |
download | volse-hubzilla-32a9eaf3b6a68626580078a3302f8dd8e85eb165.tar.gz volse-hubzilla-32a9eaf3b6a68626580078a3302f8dd8e85eb165.tar.bz2 volse-hubzilla-32a9eaf3b6a68626580078a3302f8dd8e85eb165.zip |
update db schemas
Diffstat (limited to 'install')
-rw-r--r-- | install/schema_mysql.sql | 4 | ||||
-rw-r--r-- | install/schema_postgres.sql | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/install/schema_mysql.sql b/install/schema_mysql.sql index 8267d17f7..054c1da03 100644 --- a/install/schema_mysql.sql +++ b/install/schema_mysql.sql @@ -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` ( diff --git a/install/schema_postgres.sql b/install/schema_postgres.sql index f3fe28f93..c1cbc832b 100644 --- a/install/schema_postgres.sql +++ b/install/schema_postgres.sql @@ -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, |