X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/28fee2e2ebc6746bcfeb47c0318e79789ba1c850..6a12a968761127af91e9da8db7579be2836bcaaa:/sql/Pg-upgrade2/automatic_reconciliation.sql?ds=sidebyside

diff --git a/sql/Pg-upgrade2/automatic_reconciliation.sql b/sql/Pg-upgrade2/automatic_reconciliation.sql
new file mode 100644
index 000000000..a911e07d8
--- /dev/null
+++ b/sql/Pg-upgrade2/automatic_reconciliation.sql
@@ -0,0 +1,14 @@
+-- @tag: automatic_reconciliation
+-- @description: Erstellt Tabelle reconiliation_links fÃ¼r den automatischen Kontenabgleich.
+-- @depends: release_3_0_0 bank_transactions
+
+CREATE TABLE reconciliation_links (
+  id                      integer NOT NULL DEFAULT nextval('id'),
+  bank_transaction_id     integer NOT NULL,
+  acc_trans_id            bigint  NOT NULL,
+  rec_group               integer NOT NULL,
+
+  PRIMARY KEY (id),
+  FOREIGN KEY (bank_transaction_id)      REFERENCES bank_transactions (id),
+  FOREIGN KEY (acc_trans_id)             REFERENCES acc_trans (acc_trans_id)
+);
