diff --git a/install/db/61-database.php b/install/db/61-database.php new file mode 100644 index 000000000..b4290018a --- /dev/null +++ b/install/db/61-database.php @@ -0,0 +1,53 @@ + diff --git a/install/phpwebgallery_structure.sql b/install/phpwebgallery_structure.sql index 651154cae..24e69005c 100644 --- a/install/phpwebgallery_structure.sql +++ b/install/phpwebgallery_structure.sql @@ -105,7 +105,8 @@ CREATE TABLE `phpwebgallery_groups` ( `id` smallint(5) unsigned NOT NULL auto_increment, `name` varchar(255) NOT NULL default '', `is_default` enum('true','false') NOT NULL default 'false', - PRIMARY KEY (`id`) + PRIMARY KEY (`id`), + UNIQUE KEY `groups_ui1` (`name`) ) TYPE=MyISAM; --