update init prisma

This commit is contained in:
Fred 2025-04-16 18:57:49 +02:00
parent 0c69f7911b
commit 6372a97d05
7 changed files with 59 additions and 0 deletions

View File

@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE `Utilisateur` MODIFY `ut_mdp` VARCHAR(191) NULL;

View File

@ -0,0 +1,8 @@
/*
Warnings:
- Made the column `ut_mdp` on table `Utilisateur` required. This step will fail if there are existing NULL values in that column.
*/
-- AlterTable
ALTER TABLE `Utilisateur` MODIFY `ut_mdp` VARCHAR(191) NOT NULL;

View File

@ -0,0 +1,8 @@
/*
Warnings:
- Made the column `expireAt` on table `Session` required. This step will fail if there are existing NULL values in that column.
*/
-- AlterTable
ALTER TABLE `Session` MODIFY `expireAt` DATETIME(3) NOT NULL;

View File

@ -0,0 +1,11 @@
/*
Warnings:
- The primary key for the `Session` table will be changed. If it partially fails, the table could be left without primary key constraint.
- The required column `se_id` was added to the `Session` table with a prisma-level default value. This is not possible if the table is not empty. Please add this column as optional, then populate it before making it required.
*/
-- AlterTable
ALTER TABLE `Session` DROP PRIMARY KEY,
ADD COLUMN `se_id` VARCHAR(191) NOT NULL,
ADD PRIMARY KEY (`se_id`);

View File

@ -0,0 +1,10 @@
/*
Warnings:
- You are about to drop the column `ut_id` on the `Session` table. All the data in the column will be lost.
- Added the required column `se_ut_id` to the `Session` table without a default value. This is not possible if the table is not empty.
*/
-- AlterTable
ALTER TABLE `Session` DROP COLUMN `ut_id`,
ADD COLUMN `se_ut_id` INTEGER NOT NULL;

View File

@ -0,0 +1,12 @@
/*
Warnings:
- A unique constraint covering the columns `[ut_mail]` on the table `Utilisateur` will be added. If there are existing duplicate values, this will fail.
- Made the column `ut_mail` on table `Utilisateur` required. This step will fail if there are existing NULL values in that column.
*/
-- AlterTable
ALTER TABLE `Utilisateur` MODIFY `ut_mail` VARCHAR(191) NOT NULL;
-- CreateIndex
CREATE UNIQUE INDEX `Utilisateur_ut_mail_key` ON `Utilisateur`(`ut_mail`);

View File

@ -0,0 +1,8 @@
/*
Warnings:
- You are about to drop the column `ut_panier` on the `Utilisateur` table. All the data in the column will be lost.
*/
-- AlterTable
ALTER TABLE `Utilisateur` DROP COLUMN `ut_panier`;