22 lines
700 B
SQL
22 lines
700 B
SQL
/*
|
|
Warnings:
|
|
|
|
- You are about to drop the column `isTentative` on the `Assignment` table. All the data in the column will be lost.
|
|
|
|
*/
|
|
|
|
-- AlterTable
|
|
ALTER TABLE `Assignment`
|
|
ADD COLUMN `isBySystem` BOOLEAN NOT NULL DEFAULT FALSE;
|
|
|
|
-- Depending on your DBMS, you might need to execute one statement at a time.
|
|
-- Especially, the UPDATE statement should be run separately.
|
|
UPDATE `Assignment` SET `isBySystem` = isTentative;
|
|
|
|
-- Drop the isTentative column
|
|
ALTER TABLE `Assignment` DROP COLUMN `isTentative`;
|
|
|
|
-- AlterTable
|
|
ALTER TABLE `Report`
|
|
ADD COLUMN `type` ENUM('ServiceReport', 'Experience', 'Feedback_Problem', 'Feedback_Suggestion', 'Feedback') NOT NULL DEFAULT 'ServiceReport';
|