Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Storage Service
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maksim Gorelik
Storage Service
Commits
360a3392
Commit
360a3392
authored
10 months ago
by
Maksim Gorelik
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
deployment/helm/values.yaml
+1
-1
1 addition, 1 deletion
deployment/helm/values.yaml
scripts/cql/initialize.cql
+4
-4
4 additions, 4 deletions
scripts/cql/initialize.cql
scripts/cql/insert.cql
+1
-1
1 addition, 1 deletion
scripts/cql/insert.cql
with
6 additions
and
6 deletions
deployment/helm/values.yaml
+
1
−
1
View file @
360a3392
...
...
@@ -68,7 +68,7 @@ config:
region
:
EU
mode
:
DIRECT
messaging
:
enabled
:
tru
e
enabled
:
fals
e
storageTopic
:
storage
host
:
http://localhost:4222
protocol
:
nats
...
...
This diff is collapsed.
Click to expand it.
scripts/cql/initialize.cql
+
4
−
4
View file @
360a3392
-- 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
This diff is collapsed.
Click to expand it.
scripts/cql/insert.cql
+
1
−
1
View file @
360a3392
INSERT INTO
tenant
_space.credentials JSON '{
INSERT INTO
user
_space.credentials JSON '{
"accountPartition": "ABCD",
"region": "EU",
"country":"DE",
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment