Skip to content

Commit d32255f

Browse files
committed
more sql-migrations
1 parent 5444c1e commit d32255f

7 files changed

+17
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
DROP TOPIC `test/topic`;
1+
DROP TOPIC IF EXISTS `test/topic`;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ALTER TABLE `test/users` DROP INDEX `users_email_index`;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ALTER TABLE `test/users` ADD INDEX `users_email_index` GLOBAL UNIQUE ON (`email`);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DROP TABLE IF EXISTS `test/books`;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
CREATE TABLE `test/books` (
2+
user_id Uint64,
3+
name Text,
4+
author Text,
5+
PRIMARY KEY (user_id)
6+
);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DROP TABLE IF EXISTS `test/movies`;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
CREATE TABLE `test/movies` (
2+
user_id Uint64,
3+
name Text,
4+
director Text,
5+
PRIMARY KEY (user_id)
6+
);

0 commit comments

Comments
 (0)