From 67ccdd664b7c78fdda69e68e4cff7ed43b92fa0f Mon Sep 17 00:00:00 2001 From: Lensors Date: Tue, 22 Apr 2025 10:56:40 +0200 Subject: [PATCH] =?UTF-8?q?Ajout=20bloc=20collaborative=20+=20d=C3=A9but?= =?UTF-8?q?=20mardown?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Projet/projet.sql | 2 +- Projet/src/main/webapp/WEB-INF/AfficherPage.jsp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Projet/projet.sql b/Projet/projet.sql index 9243318..a847d56 100644 --- a/Projet/projet.sql +++ b/Projet/projet.sql @@ -30,7 +30,7 @@ CREATE TABLE bloc ( page_id INT NOT NULL, ordre INT NOT NULL, auteur_id INT NOT NULL, - metadata JSON, + metadata JSON NOT NULL DEFAULT '{}', FOREIGN KEY (page_id) REFERENCES page(id) ON DELETE CASCADE, FOREIGN KEY (auteur_id) REFERENCES utilisateur(id) ON DELETE CASCADE ); diff --git a/Projet/src/main/webapp/WEB-INF/AfficherPage.jsp b/Projet/src/main/webapp/WEB-INF/AfficherPage.jsp index 06583a0..9f08814 100644 --- a/Projet/src/main/webapp/WEB-INF/AfficherPage.jsp +++ b/Projet/src/main/webapp/WEB-INF/AfficherPage.jsp @@ -51,6 +51,7 @@ data-id="${bloc.id}" data-ordre="${bloc.ordre}" data-type="${bloc.type}" + metadata="${bloc.metadata}" >${bloc.contenu}