aboutsummaryrefslogtreecommitdiffstats
path: root/install/schema_postgres.sql
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-07-14 20:51:15 -0700
committerredmatrix <git@macgirvin.com>2016-07-14 20:51:15 -0700
commit94bd53c0f1faa333991786684028e347ab17cfb9 (patch)
tree3e52bc3501a3b8787886dcc2daec410bc0275ca4 /install/schema_postgres.sql
parentf70f4a4e8558a6d715eb7ca0d02ac38753094068 (diff)
downloadvolse-hubzilla-94bd53c0f1faa333991786684028e347ab17cfb9.tar.gz
volse-hubzilla-94bd53c0f1faa333991786684028e347ab17cfb9.tar.bz2
volse-hubzilla-94bd53c0f1faa333991786684028e347ab17cfb9.zip
schema updates for zot access tokens
Diffstat (limited to 'install/schema_postgres.sql')
-rw-r--r--install/schema_postgres.sql15
1 files changed, 15 insertions, 0 deletions
diff --git a/install/schema_postgres.sql b/install/schema_postgres.sql
index 5080d7608..1a770d4ff 100644
--- a/install/schema_postgres.sql
+++ b/install/schema_postgres.sql
@@ -137,6 +137,21 @@ create index "app_created" on app ("app_created");
create index "app_edited" on app ("app_edited");
create index "app_deleted" on app ("app_deleted");
create index "app_system" on app ("app_system");
+
+CREATE TABLE "atoken" (
+ "atoken_id" serial NOT NULL,
+ "atoken_aid" bigint NOT NULL DEFAULT 0,
+ "atoken_uid" bigint NOT NULL DEFAULT 0,
+ "atoken_name" varchar(255) NOT NULL DEFAULT '',
+ "atoken_token" varchar(255) NOT NULL DEFAULT '',
+ "atoken_expires" timestamp NOT NULL DEFAULT '0001-01-01 00:00:00',
+ PRIMARY KEY ("atoken_id"));
+create index atoken_aid on atoken (atoken_aid);
+create index atoken_uid on atoken (atoken_uid);
+create index atoken_name on atoken (atoken_name);
+create index atoken_token on atoken (atoken_token);
+create index atoken_expires on atoken (atoken_expires);
+
CREATE TABLE "attach" (
"id" serial NOT NULL,
"aid" bigint NOT NULL DEFAULT '0',