Skip to content

Commit 84a01a1

Browse files
authored
Fix tx_transfer.cql (#97)
1 parent 2742a73 commit 84a01a1

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

scalardb-test/schema/tx_sensor.cql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ DROP KEYSPACE IF EXISTS sensor;
22
CREATE KEYSPACE IF NOT EXISTS sensor WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1 };
33
DROP KEYSPACE IF EXISTS coordinator;
44
CREATE KEYSPACE IF NOT EXISTS coordinator WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1 };
5+
DROP KEYSPACE IF EXISTS scalardb;
56
CREATE KEYSPACE IF NOT EXISTS scalardb WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1 };
67

78
CREATE TABLE IF NOT EXISTS sensor.tx_sensor (

scalardb-test/schema/tx_transfer.cql

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
DROP KEYSPACE IF EXISTS transfer;
22
CREATE KEYSPACE IF NOT EXISTS transfer WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1 };
3+
DROP KEYSPACE IF EXISTS coordinator;
34
CREATE KEYSPACE IF NOT EXISTS coordinator WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1 };
5+
DROP KEYSPACE IF EXISTS scalardb;
6+
CREATE KEYSPACE IF NOT EXISTS scalardb WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1 };
47

58
CREATE TABLE IF NOT EXISTS transfer.tx_transfer (
69
account_id int,
@@ -26,3 +29,12 @@ CREATE TABLE IF NOT EXISTS coordinator.state (
2629
tx_created_at bigint,
2730
PRIMARY KEY (tx_id)
2831
);
32+
33+
CREATE TABLE IF NOT EXISTS scalardb.namespaces (
34+
name text,
35+
PRIMARY KEY (name)
36+
);
37+
38+
INSERT INTO scalardb.namespaces (name) VALUES ('transfer');
39+
INSERT INTO scalardb.namespaces (name) VALUES ('coordinator');
40+
INSERT INTO scalardb.namespaces (name) VALUES ('scalardb');

0 commit comments

Comments
 (0)