Base de donnée opé

This commit is contained in:
ETHEVE Fabien
2023-02-06 13:54:51 +01:00
parent 0c934709ce
commit c3d6e4423d
10 changed files with 700 additions and 5 deletions
@@ -0,0 +1,10 @@
-- CreateTable
CREATE TABLE `Jeux` (
`id` INTEGER NOT NULL AUTO_INCREMENT,
`Title` VARCHAR(191) NOT NULL,
`Description` VARCHAR(191) NOT NULL,
`Picture` VARCHAR(191) NOT NULL,
`Worker` VARCHAR(191) NOT NULL,
PRIMARY KEY (`id`)
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE `Jeux` MODIFY `Picture` VARCHAR(255) NOT NULL;
@@ -0,0 +1,10 @@
/*
Warnings:
- You are about to drop the column `Worker` on the `Jeux` table. All the data in the column will be lost.
- Added the required column `Workers` to the `Jeux` table without a default value. This is not possible if the table is not empty.
*/
-- AlterTable
ALTER TABLE `Jeux` DROP COLUMN `Worker`,
ADD COLUMN `Workers` VARCHAR(191) NOT NULL;
+3
View File
@@ -0,0 +1,3 @@
# Please do not edit this file manually
# It should be added in your version-control system (i.e. Git)
provider = "mysql"