From 4604cd36c3f2bbe9e581cc186a372425f6ff1cb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Pinkava?= Date: Tue, 6 Jan 2015 17:41:16 +0100 Subject: [PATCH] SQL: add column for disabling unused accounts --- brmbar3/SQL | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/brmbar3/SQL b/brmbar3/SQL index 32a3cb1..7e640a6 100644 --- a/brmbar3/SQL +++ b/brmbar3/SQL @@ -37,7 +37,9 @@ CREATE TABLE accounts ( currency INTEGER NOT NULL, FOREIGN KEY (currency) REFERENCES currencies (id), - acctype account_type NOT NULL + acctype account_type NOT NULL, + + active BOOLEAN NOT NULL DEFAULT TRUE ); INSERT INTO accounts (name, currency, acctype) VALUES ('BrmBar Cash', (SELECT id FROM currencies WHERE name='Kč'), 'cash'); INSERT INTO accounts (name, currency, acctype) VALUES ('BrmBar Profits', (SELECT id FROM currencies WHERE name='Kč'), 'income');