added new transaction meta table
This commit is contained in:
parent
8f3da8ae1b
commit
1d22da2bed
11 changed files with 4029 additions and 1 deletions
22
share/ddl/SQLite/upgrade/24-25/001-auto.sql
Normal file
22
share/ddl/SQLite/upgrade/24-25/001-auto.sql
Normal file
|
@ -0,0 +1,22 @@
|
|||
-- Convert schema 'share/ddl/_source/deploy/24/001-auto.yml' to 'share/ddl/_source/deploy/25/001-auto.yml':;
|
||||
|
||||
;
|
||||
BEGIN;
|
||||
|
||||
;
|
||||
CREATE TABLE transactions_meta (
|
||||
id INTEGER PRIMARY KEY NOT NULL,
|
||||
transaction_id integer NOT NULL,
|
||||
net_value numeric(100,0) NOT NULL,
|
||||
sales_tax_value numeric(100,0) NOT NULL,
|
||||
gross_value numeric(100,0) NOT NULL,
|
||||
FOREIGN KEY (transaction_id) REFERENCES transactions(id) ON DELETE CASCADE
|
||||
);
|
||||
|
||||
;
|
||||
CREATE INDEX transactions_meta_idx_transaction_id ON transactions_meta (transaction_id);
|
||||
|
||||
;
|
||||
|
||||
COMMIT;
|
||||
|
Reference in a new issue