aboutsummaryrefslogtreecommitdiffstats
path: root/install/schema_postgres.sql
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-09-02 21:07:24 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-09-02 21:07:24 -0700
commit669e1111187d1d1888358d833c62b5445a2b360b (patch)
tree993089b1e473d74a8e4bf0154a8f278988052b0d /install/schema_postgres.sql
parent360fda15e9be17cb9ae0638fc0c76a5642b03223 (diff)
downloadvolse-hubzilla-669e1111187d1d1888358d833c62b5445a2b360b.tar.gz
volse-hubzilla-669e1111187d1d1888358d833c62b5445a2b360b.tar.bz2
volse-hubzilla-669e1111187d1d1888358d833c62b5445a2b360b.zip
add timestamps for syncing apps
Diffstat (limited to 'install/schema_postgres.sql')
-rw-r--r--install/schema_postgres.sql4
1 files changed, 4 insertions, 0 deletions
diff --git a/install/schema_postgres.sql b/install/schema_postgres.sql
index 4c307a7f0..d31c304eb 100644
--- a/install/schema_postgres.sql
+++ b/install/schema_postgres.sql
@@ -107,6 +107,8 @@ CREATE TABLE "app" (
"app_price" text NOT NULL DEFAULT '',
"app_page" text NOT NULL DEFAULT '',
"app_requires" text NOT NULL DEFAULT '',
+ "app_created" timestamp NOT NULL DEFAULT '0001-01-01 00:00:00',
+ "app_edited" timestamp NOT NULL DEFAULT '0001-01-01 00:00:00',
PRIMARY KEY ("id")
);
create index "app_id" on app ("app_id");
@@ -116,6 +118,8 @@ create index "app_photo" on app ("app_photo");
create index "app_version" on app ("app_version");
create index "app_channel" on app ("app_channel");
create index "app_price" on app ("app_price");
+create index "app_created" on app ("app_created");
+create index "app_edited" on app ("app_edited");
CREATE TABLE "attach" (
"id" serial NOT NULL,
"aid" bigint NOT NULL DEFAULT '0',