-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5444c1e
commit 11f2a26
Showing
7 changed files
with
17 additions
and
2 deletions.
There are no files selected for viewing
3 changes: 1 addition & 2 deletions
3
database/ydb/examples/migrations/002_add_city_to_users.down.sql
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,3 @@ | ||
DROP TABLE `test/cities`; | ||
|
||
ALTER TABLE `test/users` | ||
DROP COLUMN city; | ||
ALTER TABLE `test/users` DROP COLUMN city; |
1 change: 1 addition & 0 deletions
1
database/ydb/examples/migrations/004_add_index_on_user_emails.down.sql
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
ALTER TABLE `test/users` DROP INDEX `users_email_index`; |
1 change: 1 addition & 0 deletions
1
database/ydb/examples/migrations/004_add_index_on_user_emails.up.sql
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
ALTER TABLE `test/users` ADD INDEX `users_email_index` GLOBAL UNIQUE ON (`email`); |
1 change: 1 addition & 0 deletions
1
database/ydb/examples/migrations/005_create_books_table.down.sql
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
DROP TABLE `test/books`; |
6 changes: 6 additions & 0 deletions
6
database/ydb/examples/migrations/005_create_books_table.up.sql
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
CREATE TABLE `test/books` ( | ||
user_id Uint64, | ||
name Text, | ||
author Text, | ||
PRIMARY KEY (user_id) | ||
); |
1 change: 1 addition & 0 deletions
1
database/ydb/examples/migrations/006_create_movies_table.down.sql
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
DROP TABLE `test/movies`; |
6 changes: 6 additions & 0 deletions
6
database/ydb/examples/migrations/006_create_movies_table.up.sql
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
CREATE TABLE `test/movies` ( | ||
user_id Uint64, | ||
name Text, | ||
director Text, | ||
PRIMARY KEY (user_id) | ||
); |