-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #LR-716 chore: Added if not exists clause in cassandra query.
- Loading branch information
1 parent
19f28f8
commit 5413b03
Showing
15 changed files
with
19 additions
and
19 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...assandra-migration/src/main/resources/db/migration/cassandra/sunbird/V1.122_cassandra.cql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...cassandra-migration/src/main/resources/db/migration/cassandra/sunbird/V1.67_cassandra.cql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
ALTER TABLE sunbird.user ADD prevUsedPhone text; | ||
ALTER TABLE sunbird.user ADD prevUsedEmail text; | ||
CREATE TABLE sunbird.user_cert (id text,certId text,userId text,store map<text,text>,otherLink text,accessCode text,createdAt timestamp, updatedAt timestamp, PRIMARY KEY (id)); | ||
CREATE TABLE IF NOT EXISTS sunbird.user_cert (id text,certId text,userId text,store map<text,text>,otherLink text,accessCode text,createdAt timestamp, updatedAt timestamp, PRIMARY KEY (id)); | ||
CREATE INDEX inx_usrcert_user_id ON sunbird.user_cert(userId); | ||
CREATE INDEX inx_usrcert_cert_id ON sunbird.user_cert(certId); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...rd-cassandra-migration/cassandra-migration/src/test/resources/migration/cql/V1__First.cql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
CREATE TABLE test ( | ||
CREATE TABLE IF NOT EXISTS test ( | ||
space text, | ||
key text, | ||
value text, | ||
|
2 changes: 1 addition & 1 deletion
2
...gration/cassandra-migration/src/test/resources/migration/cql/V2_0__Add_contents_table.cql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
CREATE TABLE contents ( | ||
CREATE TABLE IF NOT EXISTS contents ( | ||
id bigint PRIMARY KEY, | ||
title text, | ||
message text, | ||
|
2 changes: 1 addition & 1 deletion
2
...sandra-migration/cassandra-migration/src/test/resources/migration/integ/V1_0_0__First.cql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
CREATE TABLE test1 ( | ||
CREATE TABLE IF NOT EXISTS test1 ( | ||
space text, | ||
key text, | ||
value text, | ||
|
4 changes: 2 additions & 2 deletions
4
...andra-migration/cassandra-migration/src/test/resources/migration/integ/V2_0_0__Second.cql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ation/cassandra-migration/src/test/resources/migration/integ_outoforder/V1_0_0__First.cql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
CREATE TABLE test1 ( | ||
CREATE TABLE IF NOT EXISTS test1 ( | ||
space text, | ||
key text, | ||
value text, | ||
|
4 changes: 2 additions & 2 deletions
4
...tion/cassandra-migration/src/test/resources/migration/integ_outoforder/V2_0_0__Second.cql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...tion/cassandra-migration/src/test/resources/migration/integ_outoforder2/V1_0_0__First.cql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
CREATE TABLE test1 ( | ||
CREATE TABLE IF NOT EXISTS test1 ( | ||
space text, | ||
key text, | ||
value text, | ||
|
4 changes: 2 additions & 2 deletions
4
...ion/cassandra-migration/src/test/resources/migration/integ_outoforder2/V2_0_0__Second.cql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...tion/cassandra-migration/src/test/resources/migration/integ_outoforder3/V1_0_0__First.cql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
CREATE TABLE test1 ( | ||
CREATE TABLE IF NOT EXISTS test1 ( | ||
space text, | ||
key text, | ||
value text, | ||
|
4 changes: 2 additions & 2 deletions
4
...ion/cassandra-migration/src/test/resources/migration/integ_outoforder3/V2_0_0__Second.cql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ndra-migration/cassandra-migration/src/test/resources/migration/subdir/dir1/V1__First.cql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
CREATE TABLE test ( | ||
CREATE TABLE IF NOT EXISTS test ( | ||
space text, | ||
key text, | ||
value text, | ||
|
2 changes: 1 addition & 1 deletion
2
...cassandra-migration/src/test/resources/migration/subdir/dir2/V2_0__Add_contents_table.cql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
CREATE TABLE contents ( | ||
CREATE TABLE IF NOT EXISTS contents ( | ||
id bigint PRIMARY KEY, | ||
title text, | ||
message text, | ||
|