From c02d0fc927bcf61c5d4e40432d09d173a4054cac Mon Sep 17 00:00:00 2001 From: tobi132 Date: Tue, 3 Dec 2019 05:04:34 +0100 Subject: [PATCH] Add name as unique in myaac_pages table --- install/includes/schema.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install/includes/schema.sql b/install/includes/schema.sql index db7cefc3..b2e71b80 100644 --- a/install/includes/schema.sql +++ b/install/includes/schema.sql @@ -298,7 +298,8 @@ CREATE TABLE `myaac_pages` `php` TINYINT(1) NOT NULL DEFAULT 0 COMMENT '0 - plain html, 1 - php', `access` TINYINT(2) NOT NULL DEFAULT 0, `hidden` TINYINT(1) NOT NULL DEFAULT 0, - PRIMARY KEY (`id`) + PRIMARY KEY (`id`), + UNIQUE (`name`) ) ENGINE=InnoDB DEFAULT CHARACTER SET=utf8; CREATE TABLE `myaac_gallery`