Permalink
Browse files

Merge branch 'migration-improved' into 'master'

Unconfirmed transaction tables as memory tables

See merge request open-platform/chain!235
  • Loading branch information...
evgeny-krylov committed Sep 25, 2018
2 parents 7b171ba + 759b920 commit d4ad0a5b395e79cf3203c03e47a92bfe58ec1703
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/main/resources/db/migration/V1_3__table_transactions.sql
@@ -55,7 +55,7 @@ CREATE TABLE vote_transactions (
);

-- UNCONFIRMED TABLES
CREATE TABLE u_transactions (
CREATE MEMORY TABLE u_transactions (
id BIGINT AUTO_INCREMENT PRIMARY KEY,
timestamp BIGINT NOT NULL,
fee BIGINT NOT NULL,
@@ -68,13 +68,13 @@ CREATE TABLE u_transactions (
CREATE INDEX u_transactions_fee
ON u_transactions (fee);
--
CREATE TABLE u_transfer_transactions (
CREATE MEMORY TABLE u_transfer_transactions (
id BIGINT PRIMARY KEY REFERENCES u_transactions,
amount BIGINT NOT NULL,
recipient_address VARCHAR NOT NULL
);
--
CREATE TABLE u_delegate_transactions (
CREATE MEMORY TABLE u_delegate_transactions (
id BIGINT PRIMARY KEY REFERENCES u_transactions,
node_id VARCHAR NOT NULL UNIQUE,
delegate_key VARCHAR NOT NULL UNIQUE,
@@ -83,7 +83,7 @@ CREATE TABLE u_delegate_transactions (
amount BIGINT NOT NULL
);
--
CREATE TABLE u_vote_transactions (
CREATE MEMORY TABLE u_vote_transactions (
id BIGINT PRIMARY KEY REFERENCES u_transactions,
vote_type_id INTEGER NOT NULL REFERENCES vote_types,
node_id VARCHAR NOT NULL

0 comments on commit d4ad0a5

Please sign in to comment.