From 64808edbc84b427824e968a10e4a7e24a35f1c02 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli <thomas@roundcube.net> Date: Thu, 28 Mar 2013 12:42:54 -0400 Subject: [PATCH] Add 'if not exists' to system table creation. Just in case some previous db update routine was aborted or failed --- SQL/postgres.initial.sql | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/SQL/postgres.initial.sql b/SQL/postgres.initial.sql index f7b2d96..32d8ede 100644 --- a/SQL/postgres.initial.sql +++ b/SQL/postgres.initial.sql @@ -262,3 +262,16 @@ data text NOT NULL, CONSTRAINT searches_user_id_key UNIQUE (user_id, "type", name) ); + + +-- +-- Table "system" +-- Name: system; Type: TABLE; Schema: public; Owner: postgres +-- + +CREATE TABLE "system" ( + name varchar(64) NOT NULL PRIMARY KEY, + value text +); + +INSERT INTO system (name, value) VALUES ('roundcube-version', '2013011700'); -- Gitblit v1.9.1