Skip to content

Commit

Permalink
update schema
Browse files Browse the repository at this point in the history
  • Loading branch information
sadmann7 committed Jan 22, 2024
1 parent 92da824 commit 6268506
Show file tree
Hide file tree
Showing 73 changed files with 26,005 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drizzle/0050_nervous_harry_osborn.sql
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;
1 change: 1 addition & 0 deletions drizzle/0051_sharp_whiplash.sql
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';
2 changes: 2 additions & 0 deletions drizzle/0052_low_titanium_man.sql
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';
1 change: 1 addition & 0 deletions drizzle/0053_peaceful_human_robot.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE `stores` DROP COLUMN `nano_id`;
3 changes: 3 additions & 0 deletions drizzle/0054_regular_electro.sql
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`);
3 changes: 3 additions & 0 deletions drizzle/0055_brave_satana.sql
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`);
1 change: 1 addition & 0 deletions drizzle/0056_married_pepper_potts.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE `stores` ADD `nano_id` varchar(191);
1 change: 1 addition & 0 deletions drizzle/0057_third_mordo.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE `stores` MODIFY COLUMN `nano_id` varchar(128);
1 change: 1 addition & 0 deletions drizzle/0058_youthful_harry_osborn.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE `stores` DROP COLUMN `nano_id`;
1 change: 1 addition & 0 deletions drizzle/0059_fine_leo.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE `stores` ADD `nano_id` varchar(128);
22 changes: 22 additions & 0 deletions drizzle/0060_slim_jimmy_woo.sql
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);
22 changes: 22 additions & 0 deletions drizzle/0061_woozy_human_cannonball.sql
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);
1 change: 1 addition & 0 deletions drizzle/0062_faithful_sinister_six.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE `stores` DROP COLUMN `nano_id`;
1 change: 1 addition & 0 deletions drizzle/0063_naive_iron_fist.sql
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;
1 change: 1 addition & 0 deletions drizzle/0064_certain_sir_ram.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE `stores` DROP COLUMN `nano_id`;
1 change: 1 addition & 0 deletions drizzle/0065_right_blockbuster.sql
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;
1 change: 1 addition & 0 deletions drizzle/0066_remarkable_northstar.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE `stores` DROP COLUMN `nano_id`;
21 changes: 21 additions & 0 deletions drizzle/0067_blue_captain_britain.sql
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`);
21 changes: 21 additions & 0 deletions drizzle/0068_free_firebird.sql
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`);
1 change: 1 addition & 0 deletions drizzle/0069_fast_roland_deschain.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE `stores` ADD `new_id` varchar(128);
2 changes: 2 additions & 0 deletions drizzle/0070_chubby_silverclaw.sql
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`);
2 changes: 2 additions & 0 deletions drizzle/0071_remarkable_impossible_man.sql
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;
5 changes: 5 additions & 0 deletions drizzle/0072_living_warbird.sql
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`;
2 changes: 2 additions & 0 deletions drizzle/0073_flat_master_chief.sql
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`;
2 changes: 2 additions & 0 deletions drizzle/0074_flimsy_stone_men.sql
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;
1 change: 1 addition & 0 deletions drizzle/0075_tidy_fenris.sql
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';
2 changes: 2 additions & 0 deletions drizzle/0076_narrow_nightcrawler.sql
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`;
2 changes: 2 additions & 0 deletions drizzle/0077_smooth_red_skull.sql
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;
3 changes: 3 additions & 0 deletions drizzle/0078_sad_mimic.sql
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`;
1 change: 1 addition & 0 deletions drizzle/0079_stormy_clea.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE `stores` DROP INDEX `stores_user_id_unique`;
1 change: 1 addition & 0 deletions drizzle/0080_majestic_argent.sql
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`);
1 change: 1 addition & 0 deletions drizzle/0081_lively_mister_fear.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE `stores` MODIFY COLUMN `id` varchar(128) NOT NULL;
2 changes: 2 additions & 0 deletions drizzle/0082_quick_hellfire_club.sql
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`;
2 changes: 2 additions & 0 deletions drizzle/0083_parched_junta.sql
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;
1 change: 1 addition & 0 deletions drizzle/0084_soft_captain_marvel.sql
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';
2 changes: 2 additions & 0 deletions drizzle/0085_flaky_donald_blake.sql
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`;
Loading

0 comments on commit 6268506

Please sign in to comment.