-
Notifications
You must be signed in to change notification settings - Fork 764
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
Showing
73 changed files
with
26,005 additions
and
0 deletions.
There are no files selected for viewing
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,2 @@ | ||
ALTER TABLE `stores` ADD PRIMARY KEY(`nano_id`);--> statement-breakpoint | ||
ALTER TABLE `stores` ADD `nano_id` varchar(128) NOT NULL; |
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 `stores` MODIFY COLUMN `nano_id` varchar(128) NOT NULL DEFAULT 'gGpLIl2'; |
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,2 @@ | ||
ALTER TABLE `stores` DROP PRIMARY KEY;--> statement-breakpoint | ||
ALTER TABLE `stores` MODIFY COLUMN `nano_id` varchar(128) DEFAULT 'HoDrPs9'; |
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 `stores` DROP COLUMN `nano_id`; |
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,3 @@ | ||
ALTER TABLE `stores` RENAME COLUMN `id` TO `old_id`;--> statement-breakpoint | ||
ALTER TABLE `stores` DROP PRIMARY KEY;--> statement-breakpoint | ||
ALTER TABLE `stores` ADD PRIMARY KEY(`old_id`); |
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,3 @@ | ||
ALTER TABLE `stores` RENAME COLUMN `old_id` TO `id`;--> statement-breakpoint | ||
ALTER TABLE `stores` DROP PRIMARY KEY;--> statement-breakpoint | ||
ALTER TABLE `stores` ADD PRIMARY KEY(`id`); |
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 `stores` ADD `nano_id` varchar(191); |
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 `stores` MODIFY COLUMN `nano_id` varchar(128); |
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 `stores` DROP COLUMN `nano_id`; |
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 `stores` ADD `nano_id` varchar(128); |
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,22 @@ | ||
ALTER TABLE `addresses` MODIFY COLUMN `line1` varchar(128);--> statement-breakpoint | ||
ALTER TABLE `addresses` MODIFY COLUMN `line2` varchar(128);--> statement-breakpoint | ||
ALTER TABLE `addresses` MODIFY COLUMN `city` varchar(128);--> statement-breakpoint | ||
ALTER TABLE `addresses` MODIFY COLUMN `state` varchar(128);--> statement-breakpoint | ||
ALTER TABLE `addresses` MODIFY COLUMN `postal_code` varchar(128);--> statement-breakpoint | ||
ALTER TABLE `addresses` MODIFY COLUMN `country` varchar(128);--> statement-breakpoint | ||
ALTER TABLE `carts` MODIFY COLUMN `payment_intent_id` varchar(128);--> statement-breakpoint | ||
ALTER TABLE `carts` MODIFY COLUMN `client_secret` varchar(128);--> statement-breakpoint | ||
ALTER TABLE `email_preferences` MODIFY COLUMN `user_id` varchar(128);--> statement-breakpoint | ||
ALTER TABLE `email_preferences` MODIFY COLUMN `email` varchar(128) NOT NULL;--> statement-breakpoint | ||
ALTER TABLE `email_preferences` MODIFY COLUMN `token` varchar(128) NOT NULL;--> statement-breakpoint | ||
ALTER TABLE `orders` MODIFY COLUMN `stripe_payment_intent_id` varchar(128) NOT NULL;--> statement-breakpoint | ||
ALTER TABLE `orders` MODIFY COLUMN `stripe_payment_intent_status` varchar(128) NOT NULL;--> statement-breakpoint | ||
ALTER TABLE `orders` MODIFY COLUMN `name` varchar(128);--> statement-breakpoint | ||
ALTER TABLE `orders` MODIFY COLUMN `email` varchar(128);--> statement-breakpoint | ||
ALTER TABLE `payments` MODIFY COLUMN `stripe_account_id` varchar(128) NOT NULL;--> statement-breakpoint | ||
ALTER TABLE `products` MODIFY COLUMN `name` varchar(128) NOT NULL;--> statement-breakpoint | ||
ALTER TABLE `products` MODIFY COLUMN `subcategory` varchar(128);--> statement-breakpoint | ||
ALTER TABLE `stores` MODIFY COLUMN `user_id` varchar(128) NOT NULL;--> statement-breakpoint | ||
ALTER TABLE `subscriptions` MODIFY COLUMN `user_id` varchar(128) NOT NULL;--> statement-breakpoint | ||
ALTER TABLE `subscriptions` MODIFY COLUMN `stripe_price_id` varchar(128);--> statement-breakpoint | ||
ALTER TABLE `subscriptions` MODIFY COLUMN `stripe_customer_id` varchar(128); |
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,22 @@ | ||
ALTER TABLE `addresses` MODIFY COLUMN `line1` varchar(191);--> statement-breakpoint | ||
ALTER TABLE `addresses` MODIFY COLUMN `line2` varchar(191);--> statement-breakpoint | ||
ALTER TABLE `addresses` MODIFY COLUMN `city` varchar(191);--> statement-breakpoint | ||
ALTER TABLE `addresses` MODIFY COLUMN `state` varchar(191);--> statement-breakpoint | ||
ALTER TABLE `addresses` MODIFY COLUMN `postal_code` varchar(191);--> statement-breakpoint | ||
ALTER TABLE `addresses` MODIFY COLUMN `country` varchar(191);--> statement-breakpoint | ||
ALTER TABLE `carts` MODIFY COLUMN `payment_intent_id` varchar(191);--> statement-breakpoint | ||
ALTER TABLE `carts` MODIFY COLUMN `client_secret` varchar(191);--> statement-breakpoint | ||
ALTER TABLE `email_preferences` MODIFY COLUMN `user_id` varchar(191);--> statement-breakpoint | ||
ALTER TABLE `email_preferences` MODIFY COLUMN `email` varchar(191) NOT NULL;--> statement-breakpoint | ||
ALTER TABLE `email_preferences` MODIFY COLUMN `token` varchar(191) NOT NULL;--> statement-breakpoint | ||
ALTER TABLE `orders` MODIFY COLUMN `stripe_payment_intent_id` varchar(191) NOT NULL;--> statement-breakpoint | ||
ALTER TABLE `orders` MODIFY COLUMN `stripe_payment_intent_status` varchar(191) NOT NULL;--> statement-breakpoint | ||
ALTER TABLE `orders` MODIFY COLUMN `name` varchar(191);--> statement-breakpoint | ||
ALTER TABLE `orders` MODIFY COLUMN `email` varchar(191);--> statement-breakpoint | ||
ALTER TABLE `payments` MODIFY COLUMN `stripe_account_id` varchar(191) NOT NULL;--> statement-breakpoint | ||
ALTER TABLE `products` MODIFY COLUMN `name` varchar(191) NOT NULL;--> statement-breakpoint | ||
ALTER TABLE `products` MODIFY COLUMN `subcategory` varchar(191);--> statement-breakpoint | ||
ALTER TABLE `stores` MODIFY COLUMN `user_id` varchar(191) NOT NULL;--> statement-breakpoint | ||
ALTER TABLE `subscriptions` MODIFY COLUMN `user_id` varchar(191) NOT NULL;--> statement-breakpoint | ||
ALTER TABLE `subscriptions` MODIFY COLUMN `stripe_price_id` varchar(191);--> statement-breakpoint | ||
ALTER TABLE `subscriptions` MODIFY COLUMN `stripe_customer_id` varchar(191); |
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 `stores` DROP COLUMN `nano_id`; |
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 `stores` ADD `nano_id` varchar(128) DEFAULT 'abc' NOT NULL; |
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 `stores` DROP COLUMN `nano_id`; |
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 `stores` ADD `nano_id` varchar(128) DEFAULT 'abc' NOT NULL; |
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 `stores` DROP COLUMN `nano_id`; |
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,21 @@ | ||
ALTER TABLE `addresses` RENAME COLUMN `id` TO `old_id`;--> statement-breakpoint | ||
ALTER TABLE `carts` RENAME COLUMN `id` TO `old_id`;--> statement-breakpoint | ||
ALTER TABLE `email_preferences` RENAME COLUMN `id` TO `old_id`;--> statement-breakpoint | ||
ALTER TABLE `orders` RENAME COLUMN `id` TO `old_id`;--> statement-breakpoint | ||
ALTER TABLE `payments` RENAME COLUMN `id` TO `old_id`;--> statement-breakpoint | ||
ALTER TABLE `products` RENAME COLUMN `id` TO `old_id`;--> statement-breakpoint | ||
ALTER TABLE `stores` RENAME COLUMN `id` TO `old_id`;--> statement-breakpoint | ||
ALTER TABLE `addresses` DROP PRIMARY KEY;--> statement-breakpoint | ||
ALTER TABLE `carts` DROP PRIMARY KEY;--> statement-breakpoint | ||
ALTER TABLE `email_preferences` DROP PRIMARY KEY;--> statement-breakpoint | ||
ALTER TABLE `orders` DROP PRIMARY KEY;--> statement-breakpoint | ||
ALTER TABLE `payments` DROP PRIMARY KEY;--> statement-breakpoint | ||
ALTER TABLE `products` DROP PRIMARY KEY;--> statement-breakpoint | ||
ALTER TABLE `stores` DROP PRIMARY KEY;--> statement-breakpoint | ||
ALTER TABLE `addresses` ADD PRIMARY KEY(`old_id`);--> statement-breakpoint | ||
ALTER TABLE `carts` ADD PRIMARY KEY(`old_id`);--> statement-breakpoint | ||
ALTER TABLE `email_preferences` ADD PRIMARY KEY(`old_id`);--> statement-breakpoint | ||
ALTER TABLE `orders` ADD PRIMARY KEY(`old_id`);--> statement-breakpoint | ||
ALTER TABLE `payments` ADD PRIMARY KEY(`old_id`);--> statement-breakpoint | ||
ALTER TABLE `products` ADD PRIMARY KEY(`old_id`);--> statement-breakpoint | ||
ALTER TABLE `stores` ADD PRIMARY KEY(`old_id`); |
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,21 @@ | ||
ALTER TABLE `addresses` RENAME COLUMN `old_id` TO `id`;--> statement-breakpoint | ||
ALTER TABLE `carts` RENAME COLUMN `old_id` TO `id`;--> statement-breakpoint | ||
ALTER TABLE `email_preferences` RENAME COLUMN `old_id` TO `id`;--> statement-breakpoint | ||
ALTER TABLE `orders` RENAME COLUMN `old_id` TO `id`;--> statement-breakpoint | ||
ALTER TABLE `payments` RENAME COLUMN `old_id` TO `id`;--> statement-breakpoint | ||
ALTER TABLE `products` RENAME COLUMN `old_id` TO `id`;--> statement-breakpoint | ||
ALTER TABLE `stores` RENAME COLUMN `old_id` TO `id`;--> statement-breakpoint | ||
ALTER TABLE `addresses` DROP PRIMARY KEY;--> statement-breakpoint | ||
ALTER TABLE `carts` DROP PRIMARY KEY;--> statement-breakpoint | ||
ALTER TABLE `email_preferences` DROP PRIMARY KEY;--> statement-breakpoint | ||
ALTER TABLE `orders` DROP PRIMARY KEY;--> statement-breakpoint | ||
ALTER TABLE `payments` DROP PRIMARY KEY;--> statement-breakpoint | ||
ALTER TABLE `products` DROP PRIMARY KEY;--> statement-breakpoint | ||
ALTER TABLE `stores` DROP PRIMARY KEY;--> statement-breakpoint | ||
ALTER TABLE `addresses` ADD PRIMARY KEY(`id`);--> statement-breakpoint | ||
ALTER TABLE `carts` ADD PRIMARY KEY(`id`);--> statement-breakpoint | ||
ALTER TABLE `email_preferences` ADD PRIMARY KEY(`id`);--> statement-breakpoint | ||
ALTER TABLE `orders` ADD PRIMARY KEY(`id`);--> statement-breakpoint | ||
ALTER TABLE `payments` ADD PRIMARY KEY(`id`);--> statement-breakpoint | ||
ALTER TABLE `products` ADD PRIMARY KEY(`id`);--> statement-breakpoint | ||
ALTER TABLE `stores` ADD PRIMARY KEY(`id`); |
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 `stores` ADD `new_id` varchar(128); |
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,2 @@ | ||
ALTER TABLE `stores` MODIFY COLUMN `new_id` varchar(128) NOT NULL;--> statement-breakpoint | ||
ALTER TABLE `stores` ADD PRIMARY KEY(`new_id`); |
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,2 @@ | ||
ALTER TABLE `stores` DROP PRIMARY KEY;--> statement-breakpoint | ||
ALTER TABLE `stores` MODIFY COLUMN `id` serial AUTO_INCREMENT; |
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,5 @@ | ||
ALTER TABLE `stores` DROP PRIMARY KEY;--> statement-breakpoint | ||
ALTER TABLE `stores` MODIFY COLUMN `id` varchar(128) NOT NULL;--> statement-breakpoint | ||
ALTER TABLE `stores` ADD PRIMARY KEY(`id`);--> statement-breakpoint | ||
ALTER TABLE `stores` ADD `old_id` serial AUTO_INCREMENT;--> statement-breakpoint | ||
ALTER TABLE `stores` DROP COLUMN `new_id`; |
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,2 @@ | ||
ALTER TABLE `stores` MODIFY COLUMN `id` serial AUTO_INCREMENT NOT NULL;--> statement-breakpoint | ||
ALTER TABLE `stores` DROP COLUMN `old_id`; |
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,2 @@ | ||
ALTER TABLE `stores` ADD CONSTRAINT `stores_new_id_unique` UNIQUE(`new_id`);--> statement-breakpoint | ||
ALTER TABLE `stores` ADD `new_id` varchar(191) NOT NULL; |
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 `stores` MODIFY COLUMN `new_id` varchar(191) NOT NULL DEFAULT 'abc123'; |
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,2 @@ | ||
ALTER TABLE `stores` DROP INDEX `stores_new_id_unique`;--> statement-breakpoint | ||
ALTER TABLE `stores` DROP COLUMN `new_id`; |
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,2 @@ | ||
ALTER TABLE `stores` ADD CONSTRAINT `stores_new_id_unique` UNIQUE(`new_id`);--> statement-breakpoint | ||
ALTER TABLE `stores` ADD `new_id` varchar(128) DEFAULT 'abc123' NOT NULL; |
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,3 @@ | ||
ALTER TABLE `stores` ADD CONSTRAINT `stores_user_id_unique` UNIQUE(`user_id`);--> statement-breakpoint | ||
ALTER TABLE `stores` DROP INDEX `stores_new_id_unique`;--> statement-breakpoint | ||
ALTER TABLE `stores` DROP COLUMN `new_id`; |
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 `stores` DROP INDEX `stores_user_id_unique`; |
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 `stores` ADD CONSTRAINT `stores_stripe_account_id_unique` UNIQUE(`stripe_account_id`); |
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 `stores` MODIFY COLUMN `id` varchar(128) NOT NULL; |
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,2 @@ | ||
ALTER TABLE `stores` MODIFY COLUMN `id` serial AUTO_INCREMENT NOT NULL;--> statement-breakpoint | ||
ALTER TABLE `stores` DROP INDEX `stores_stripe_account_id_unique`; |
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,2 @@ | ||
ALTER TABLE `stores` ADD CONSTRAINT `stores_new_id_unique` UNIQUE(`new_id`);--> statement-breakpoint | ||
ALTER TABLE `stores` ADD `new_id` varchar(128) NOT NULL; |
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 `stores` MODIFY COLUMN `new_id` varchar(128) NOT NULL DEFAULT '2dPDbt8'; |
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,2 @@ | ||
ALTER TABLE `stores` DROP INDEX `stores_new_id_unique`;--> statement-breakpoint | ||
ALTER TABLE `stores` DROP COLUMN `new_id`; |
Oops, something went wrong.