aboutsummaryrefslogtreecommitdiffstats
path: root/install/schema_postgres.sql
diff options
context:
space:
mode:
authorPaolo T <tuscanhobbit@users.noreply.github.com>2015-03-22 16:34:40 +0100
committerPaolo T <tuscanhobbit@users.noreply.github.com>2015-03-22 16:34:40 +0100
commit82fb1ca0caaae72b77b641d22e51d5ae1b188183 (patch)
treea2ecee4e65bc80300c62b5b327965b8118117ad3 /install/schema_postgres.sql
parentff5c3b009fa25e87e294cd458d3de4b677270c64 (diff)
parente345d6793d5f6910dd230f661ca5d1a837b1b504 (diff)
downloadvolse-hubzilla-82fb1ca0caaae72b77b641d22e51d5ae1b188183.tar.gz
volse-hubzilla-82fb1ca0caaae72b77b641d22e51d5ae1b188183.tar.bz2
volse-hubzilla-82fb1ca0caaae72b77b641d22e51d5ae1b188183.zip
Merge pull request #8 from friendica/master
merging red master into nuvola.red
Diffstat (limited to 'install/schema_postgres.sql')
-rw-r--r--install/schema_postgres.sql9
1 files changed, 7 insertions, 2 deletions
diff --git a/install/schema_postgres.sql b/install/schema_postgres.sql
index d852f38e9..bc72be445 100644
--- a/install/schema_postgres.sql
+++ b/install/schema_postgres.sql
@@ -29,6 +29,7 @@ CREATE TABLE "abook" (
create index "abook_dob" on abook ("abook_dob");
create index "abook_connected" on abook ("abook_connected");
create index "abook_rating" on abook ("abook_rating");
+ create index "abook_channel_closeness" on abook ("abook_channel", "abook_closeness");
CREATE TABLE "account" (
"account_id" serial NOT NULL,
@@ -528,7 +529,7 @@ CREATE TABLE "item" (
"item_restrict" bigint NOT NULL DEFAULT '0',
"item_flags" bigint NOT NULL DEFAULT '0',
"item_private" numeric(4) NOT NULL DEFAULT '0',
- "item_unseen" smallint(1) NOT NULL DEFAULT '0',
+ "item_unseen" smallint NOT NULL DEFAULT '0',
"item_search_vector" tsvector,
PRIMARY KEY ("id")
);
@@ -725,6 +726,7 @@ CREATE TABLE "outq" (
"outq_updated" timestamp NOT NULL DEFAULT '0001-01-01 00:00:00',
"outq_notify" text NOT NULL,
"outq_msg" text NOT NULL,
+ "outq_priority" smallint NOT NULL DEFAULT '0',
PRIMARY KEY ("outq_hash")
);
create index "outq_account" on outq ("outq_account");
@@ -734,6 +736,7 @@ create index "outq_created" on outq ("outq_created");
create index "outq_updated" on outq ("outq_updated");
create index "outq_async" on outq ("outq_async");
create index "outq_delivered" on outq ("outq_delivered");
+create index "outq_priority" on outq ("outq_priority");
CREATE TABLE "pconfig" (
"id" serial NOT NULL,
@@ -959,6 +962,7 @@ CREATE TABLE "site" (
"site_sellpage" text NOT NULL DEFAULT '',
"site_location" text NOT NULL DEFAULT '',
"site_realm" text NOT NULL DEFAULT '',
+ "site_valid" smallint NOT NULL DEFAULT '0',
PRIMARY KEY ("site_url")
);
create index "site_flags" on site ("site_flags");
@@ -968,6 +972,7 @@ create index "site_register" on site ("site_register");
create index "site_access" on site ("site_access");
create index "site_sellpage" on site ("site_sellpage");
create index "site_realm" on site ("site_realm");
+create index "site_valid" on site ("site_valid");
CREATE TABLE "source" (
"src_id" serial NOT NULL,
@@ -1161,7 +1166,7 @@ CREATE TABLE "xperm" (
"xp_client" varchar( 20 ) NOT NULL DEFAULT '',
"xp_channel" bigint NOT NULL DEFAULT '0',
"xp_perm" varchar( 64 ) NOT NULL DEFAULT '',
- PRIMARY_KEY ("xp_id")
+ PRIMARY KEY ("xp_id")
);
create index "xp_client" on xperm ("xp_client");
create index "xp_channel" on xperm ("xp_channel");