From 3df0bb55221317a17d6e898415ba5d33ede7715d Mon Sep 17 00:00:00 2001
From: redmatrix <git@macgirvin.com>
Date: Tue, 3 May 2016 18:41:16 -0700
Subject: some preliminary structural work for app organisation

---
 install/schema_postgres.sql | 4 ++++
 1 file changed, 4 insertions(+)

(limited to 'install/schema_postgres.sql')

diff --git a/install/schema_postgres.sql b/install/schema_postgres.sql
index 2c0847cbf..75e53d3dd 100644
--- a/install/schema_postgres.sql
+++ b/install/schema_postgres.sql
@@ -120,6 +120,8 @@ CREATE TABLE "app" (
   "app_price" text NOT NULL DEFAULT '',
   "app_page" text NOT NULL DEFAULT '',
   "app_requires" text NOT NULL DEFAULT '',
+  "app_deleted" smallint NOT NULL DEFAULT '0',
+  "app_system" smallint NOT NULL DEFAULT '0',
   "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")
@@ -133,6 +135,8 @@ 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 index "app_deleted" on app ("app_deleted");
+create index "app_system" on app ("app_system");
 CREATE TABLE "attach" (
   "id" serial  NOT NULL,
   "aid" bigint  NOT NULL DEFAULT '0',
-- 
cgit v1.2.3

