aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/develop/create_schema_files.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2009-03-20 13:22:19 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2009-03-20 13:22:19 +0000
commit0f162568f241753ff3ec5a15c3ec9d3028c10f23 (patch)
tree559f4fb4c242f4421b5061d768775b9f64128259 /phpBB/develop/create_schema_files.php
parent06c4fbf81fdc66cc3eea11628b35f5c4ebbbaaba (diff)
downloadforums-0f162568f241753ff3ec5a15c3ec9d3028c10f23.tar
forums-0f162568f241753ff3ec5a15c3ec9d3028c10f23.tar.gz
forums-0f162568f241753ff3ec5a15c3ec9d3028c10f23.tar.bz2
forums-0f162568f241753ff3ec5a15c3ec9d3028c10f23.tar.xz
forums-0f162568f241753ff3ec5a15c3ec9d3028c10f23.zip
Fix duplicate creation of acl options in acl_add_options() under certain conditions. (Bug #38385, #40225)
Add unique key to ACL options table to prevent duplicate permission options. (Bug #41835) git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9400 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/develop/create_schema_files.php')
-rw-r--r--phpBB/develop/create_schema_files.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/develop/create_schema_files.php b/phpBB/develop/create_schema_files.php
index 4d39d0c6b0..52c72fc72c 100644
--- a/phpBB/develop/create_schema_files.php
+++ b/phpBB/develop/create_schema_files.php
@@ -855,7 +855,7 @@ function get_schema_struct()
),
'PRIMARY_KEY' => 'auth_option_id',
'KEYS' => array(
- 'auth_option' => array('INDEX', 'auth_option'),
+ 'auth_option' => array('UNIQUE', 'auth_option'),
),
);