renames
This commit is contained in:
@@ -5,7 +5,7 @@ CREATE TABLE `Publisher` (
|
||||
`lastName` VARCHAR(191) NOT NULL,
|
||||
`email` VARCHAR(191) NOT NULL,
|
||||
`phone` VARCHAR(191) NULL,
|
||||
`isactive` BOOLEAN NOT NULL DEFAULT true,
|
||||
`isActive` BOOLEAN NOT NULL DEFAULT true,
|
||||
`age` INTEGER NULL,
|
||||
|
||||
UNIQUE INDEX `Publisher_email_key`(`email`),
|
||||
@@ -41,7 +41,7 @@ CREATE TABLE `Shift` (
|
||||
`name` VARCHAR(191) NOT NULL,
|
||||
`startTime` DATETIME(3) NOT NULL,
|
||||
`endTime` DATETIME(3) NOT NULL,
|
||||
`isactive` BOOLEAN NOT NULL DEFAULT true,
|
||||
`isActive` BOOLEAN NOT NULL DEFAULT true,
|
||||
`requiresTransport` BOOLEAN NOT NULL DEFAULT false,
|
||||
|
||||
PRIMARY KEY (`id`)
|
||||
@@ -52,7 +52,7 @@ CREATE TABLE `Location` (
|
||||
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
||||
`name` VARCHAR(191) NOT NULL,
|
||||
`address` VARCHAR(191) NOT NULL,
|
||||
`isactive` BOOLEAN NOT NULL DEFAULT true,
|
||||
`isActive` BOOLEAN NOT NULL DEFAULT true,
|
||||
`dayofweek` ENUM('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday') NOT NULL,
|
||||
|
||||
PRIMARY KEY (`id`)
|
||||
|
@@ -6,10 +6,10 @@
|
||||
|
||||
*/
|
||||
-- AlterTable
|
||||
ALTER TABLE `Availability` ADD COLUMN `isactive` BOOLEAN NOT NULL DEFAULT true;
|
||||
ALTER TABLE `Availability` ADD COLUMN `isActive` BOOLEAN NOT NULL DEFAULT true;
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE `CartEvent` ADD COLUMN `isactive` BOOLEAN NOT NULL DEFAULT true,
|
||||
ALTER TABLE `CartEvent` ADD COLUMN `isActive` BOOLEAN NOT NULL DEFAULT true,
|
||||
ADD COLUMN `locationId` INTEGER NOT NULL,
|
||||
ADD COLUMN `shiftDuration` INTEGER NOT NULL;
|
||||
|
||||
|
@@ -18,7 +18,7 @@ CREATE TABLE `Assignment` (
|
||||
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
||||
`shiftId` INTEGER NOT NULL,
|
||||
`publisherId` INTEGER NOT NULL,
|
||||
`isactive` BOOLEAN NOT NULL DEFAULT true,
|
||||
`isActive` BOOLEAN NOT NULL DEFAULT true,
|
||||
|
||||
PRIMARY KEY (`id`)
|
||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
|
@@ -1,11 +1,11 @@
|
||||
/*
|
||||
Warnings:
|
||||
|
||||
- You are about to drop the column `isactive` on the `assignment` table. All the data in the column will be lost.
|
||||
- You are about to drop the column `isActive` on the `assignment` table. All the data in the column will be lost.
|
||||
|
||||
*/
|
||||
-- AlterTable
|
||||
ALTER TABLE `Assignment` DROP COLUMN `isactive`,
|
||||
ALTER TABLE `Assignment` DROP COLUMN `isActive`,
|
||||
ADD COLUMN `isTentative` BOOLEAN NOT NULL DEFAULT false;
|
||||
|
||||
-- AlterTable
|
||||
|
15
prisma/migrations/20240325214807_misc_renames/migration.sql
Normal file
15
prisma/migrations/20240325214807_misc_renames/migration.sql
Normal file
@@ -0,0 +1,15 @@
|
||||
/*
|
||||
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;
|
||||
UPDATE `Assignment` SET `isBySystem` = isTentative;
|
||||
|
||||
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';
|
Reference in New Issue
Block a user