mirror of
https://github.com/brmlab/brmbar.git
synced 2025-06-07 21:04:00 +02:00
SQL: add column for disabling unused accounts
This commit is contained in:
parent
d79dcb5a5c
commit
4604cd36c3
1 changed files with 3 additions and 1 deletions
|
@ -37,7 +37,9 @@ CREATE TABLE accounts (
|
||||||
currency INTEGER NOT NULL,
|
currency INTEGER NOT NULL,
|
||||||
FOREIGN KEY (currency) REFERENCES currencies (id),
|
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 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');
|
INSERT INTO accounts (name, currency, acctype) VALUES ('BrmBar Profits', (SELECT id FROM currencies WHERE name='Kč'), 'income');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue