Skip to content
Snippets Groups Projects
Commit 360a3392 authored by Maksim Gorelik's avatar Maksim Gorelik
Browse files

nats disabled and adjusted db init scripts

parent 47b875b0
No related branches found
No related tags found
No related merge requests found
Pipeline #40382 failed with stages
......@@ -68,7 +68,7 @@ config:
region: EU
mode: DIRECT
messaging:
enabled: true
enabled: false
storageTopic: storage
host: http://localhost:4222
protocol: nats
......
-- Create a keyspace
CREATE KEYSPACE IF NOT EXISTS tenant_space WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : '1' };
CREATE KEYSPACE IF NOT EXISTS user_space WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : '1' };
-- Create a table
CREATE TABLE IF NOT EXISTS tenant_space.credentials (
CREATE TABLE IF NOT EXISTS user_space.credentials (
accountPartition text,
region text,
country text,
......@@ -20,5 +20,5 @@ signature text,
PRIMARY KEY ((accountPartition,region,country),account)
);
CREATE INDEX IF NOT EXISTS ON tenant_space.credentials (locked);
CREATE INDEX IF NOT EXISTS ON tenant_space.credentials (id);
\ No newline at end of file
CREATE INDEX IF NOT EXISTS ON user_space.credentials (locked);
CREATE INDEX IF NOT EXISTS ON user_space.credentials (id);
\ No newline at end of file
INSERT INTO tenant_space.credentials JSON '{
INSERT INTO user_space.credentials JSON '{
"accountPartition": "ABCD",
"region": "EU",
"country":"DE",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment