medicine/Medicine-Server/uploadRes/prisma/migrations/20240208080331_/migration.sql

29 lines
1.5 KiB
SQL

/*
Warnings:
- You are about to drop the column `common_content` on the `x_goods` table. All the data in the column will be lost.
- You are about to drop the column `common_desc` on the `x_goods` table. All the data in the column will be lost.
- You are about to drop the column `common_ident` on the `x_goods` table. All the data in the column will be lost.
- You are about to drop the column `common_name` on the `x_goods` table. All the data in the column will be lost.
- You are about to drop the column `common_no` on the `x_goods` table. All the data in the column will be lost.
- You are about to drop the column `common_spec` on the `x_goods` table. All the data in the column will be lost.
- You are about to drop the column `common_type` on the `x_goods` table. All the data in the column will be lost.
- You are about to drop the column `common_weight` on the `x_goods` table. All the data in the column will be lost.
*/
-- AlterTable
ALTER TABLE `x_goods` DROP COLUMN `common_content`,
DROP COLUMN `common_desc`,
DROP COLUMN `common_ident`,
DROP COLUMN `common_name`,
DROP COLUMN `common_no`,
DROP COLUMN `common_spec`,
DROP COLUMN `common_type`,
DROP COLUMN `common_weight`,
ADD COLUMN `content` TEXT NULL,
ADD COLUMN `goods_no` VARCHAR(191) NULL DEFAULT '',
ADD COLUMN `ident` VARCHAR(191) NULL DEFAULT '',
ADD COLUMN `spec` VARCHAR(191) NULL DEFAULT '',
ADD COLUMN `type` VARCHAR(191) NULL DEFAULT '',
ADD COLUMN `weight` VARCHAR(191) NULL DEFAULT '';