transform core api codes into this project, update modules as admin/pos context modules
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
Warnings:
|
||||
|
||||
- You are about to drop the column `account_id` on the `good_categories` table. All the data in the column will be lost.
|
||||
- You are about to drop the column `account_id` on the `goods` table. All the data in the column will be lost.
|
||||
|
||||
*/
|
||||
-- AlterTable
|
||||
ALTER TABLE `good_categories` DROP COLUMN `account_id`,
|
||||
ADD COLUMN `guild_id` VARCHAR(191) NULL,
|
||||
ADD COLUMN `is_default_guild_good` BOOLEAN NOT NULL DEFAULT false,
|
||||
MODIFY `complex_id` VARCHAR(191) NULL;
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE `goods` DROP COLUMN `account_id`,
|
||||
ADD COLUMN `guild_id` VARCHAR(191) NULL,
|
||||
ADD COLUMN `is_default_guild_good` BOOLEAN NOT NULL DEFAULT false,
|
||||
MODIFY `base_sale_price` DECIMAL(15, 0) NULL DEFAULT 0.00,
|
||||
MODIFY `complex_id` VARCHAR(191) NULL;
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE `goods` ADD CONSTRAINT `goods_complex_id_fkey` FOREIGN KEY (`complex_id`) REFERENCES `complexes`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE `goods` ADD CONSTRAINT `goods_guild_id_fkey` FOREIGN KEY (`guild_id`) REFERENCES `guilds`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE `good_categories` ADD CONSTRAINT `good_categories_guild_id_fkey` FOREIGN KEY (`guild_id`) REFERENCES `guilds`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE `good_categories` ADD CONSTRAINT `good_categories_complex_id_fkey` FOREIGN KEY (`complex_id`) REFERENCES `complexes`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
||||
Reference in New Issue
Block a user