13 lines
553 B
SQL
13 lines
553 B
SQL
/*
|
|
Warnings:
|
|
|
|
- A unique constraint covering the columns `[employee_id,start_date]` on the table `timesheets` will be added. If there are existing duplicate values, this will fail.
|
|
- Added the required column `start_date` to the `timesheets` table without a default value. This is not possible if the table is not empty.
|
|
|
|
*/
|
|
-- AlterTable
|
|
ALTER TABLE "public"."timesheets" ADD COLUMN "start_date" DATE NOT NULL;
|
|
|
|
-- CreateIndex
|
|
CREATE UNIQUE INDEX "timesheets_employee_id_start_date_key" ON "public"."timesheets"("employee_id", "start_date");
|