From 6737d86e0f5e86d20d79feeb8c9d0aa20d675bbc Mon Sep 17 00:00:00 2001
From: nicod_ <nicod@lerebooteux.fr>
Date: Sun, 16 Apr 2023 17:07:44 +0200
Subject: [PATCH] Contrainte : l'identifiant est unique

---
 base/blocks.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/base/blocks.php b/base/blocks.php
index 6127c7f..6bd3092 100644
--- a/base/blocks.php
+++ b/base/blocks.php
@@ -97,7 +97,7 @@ function blocks_declarer_tables_objets_sql($tables) {
 		],
 		'key'                 => [
 			'PRIMARY KEY'     => 'id_blocs_type',
-			'KEY identifiant' => 'identifiant',
+			'UNIQUE KEY identifiant' => 'identifiant',
 		],
 		'titre'               => 'titre AS titre, "" AS lang',
 		#'date' => '',
-- 
GitLab