Note that the app fills market_id, the bank for a cost
This commit is contained in:
1 parent
293be22118
commit
741278ca52
1 file changed
+2
-1
+2
-1
@@ -288,7 +288,8 @@ CREATE TABLE IF NOT EXISTS transactions (
|
||||
'trade', 'income', 'spend', 'loss',
|
||||
'transfer_out', 'transfer_in',
|
||||
'gift_received', 'gift_given', 'admin_cost')),
|
||||
-- Null only for admin_cost, which stands on its own (section 3.10).
|
||||
-- The app always fills this: for admin_cost it is the bank (section 3.11). The
|
||||
-- column stays nullable so that a database written before section 3.11 applies.
|
||||
market_id INTEGER REFERENCES markets(id),
|
||||
taxable INTEGER NOT NULL DEFAULT 1 CHECK (taxable IN (0, 1)),
|
||||
note TEXT NOT NULL DEFAULT '',
|
||||
|
||||
Reference in new issue
Block a user