diff --git a/prisma/migrations/20250416121154_init/migration.sql b/prisma/migrations/20250416121154_init/migration.sql new file mode 100644 index 0000000..8e41d29 --- /dev/null +++ b/prisma/migrations/20250416121154_init/migration.sql @@ -0,0 +1,2 @@ +-- AlterTable +ALTER TABLE `Utilisateur` MODIFY `ut_mdp` VARCHAR(191) NULL; diff --git a/prisma/migrations/20250416122650_init/migration.sql b/prisma/migrations/20250416122650_init/migration.sql new file mode 100644 index 0000000..d21a028 --- /dev/null +++ b/prisma/migrations/20250416122650_init/migration.sql @@ -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; diff --git a/prisma/migrations/20250416123011_init/migration.sql b/prisma/migrations/20250416123011_init/migration.sql new file mode 100644 index 0000000..dd12823 --- /dev/null +++ b/prisma/migrations/20250416123011_init/migration.sql @@ -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; diff --git a/prisma/migrations/20250416123508_init/migration.sql b/prisma/migrations/20250416123508_init/migration.sql new file mode 100644 index 0000000..dc5969b --- /dev/null +++ b/prisma/migrations/20250416123508_init/migration.sql @@ -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`); diff --git a/prisma/migrations/20250416123535_init/migration.sql b/prisma/migrations/20250416123535_init/migration.sql new file mode 100644 index 0000000..30ff8b7 --- /dev/null +++ b/prisma/migrations/20250416123535_init/migration.sql @@ -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; diff --git a/prisma/migrations/20250416155612_init/migration.sql b/prisma/migrations/20250416155612_init/migration.sql new file mode 100644 index 0000000..029dd69 --- /dev/null +++ b/prisma/migrations/20250416155612_init/migration.sql @@ -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`); diff --git a/prisma/migrations/20250416163101_init/migration.sql b/prisma/migrations/20250416163101_init/migration.sql new file mode 100644 index 0000000..5da0318 --- /dev/null +++ b/prisma/migrations/20250416163101_init/migration.sql @@ -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`;