diff options
author | Marc Alexander <admin@m-a-styles.de> | 2017-12-25 18:49:31 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2018-01-01 18:55:12 +0100 |
commit | 400fc0f73d03010d3bf28d2b1db5d789dc085334 (patch) | |
tree | bb12ab982bbcbb232f62023592f892047c5886a7 /phpBB/phpbb/db/tools | |
parent | f4381a20d4ec6201a00cd618c24fd29b67f77965 (diff) | |
download | forums-400fc0f73d03010d3bf28d2b1db5d789dc085334.tar forums-400fc0f73d03010d3bf28d2b1db5d789dc085334.tar.gz forums-400fc0f73d03010d3bf28d2b1db5d789dc085334.tar.bz2 forums-400fc0f73d03010d3bf28d2b1db5d789dc085334.tar.xz forums-400fc0f73d03010d3bf28d2b1db5d789dc085334.zip |
[ticket/15055] Only drop dependent PK indexes and fix more tests for mssql
PHPBB3-15055
Diffstat (limited to 'phpBB/phpbb/db/tools')
-rw-r--r-- | phpBB/phpbb/db/tools/mssql.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/phpbb/db/tools/mssql.php b/phpBB/phpbb/db/tools/mssql.php index 0dfb09b1ba..1e4d3aee2f 100644 --- a/phpBB/phpbb/db/tools/mssql.php +++ b/phpBB/phpbb/db/tools/mssql.php @@ -706,7 +706,8 @@ class mssql extends tools FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS tc JOIN INFORMATION_SCHEMA.CONSTRAINT_COLUMN_USAGE ccu ON tc.CONSTRAINT_NAME = ccu.Constraint_name WHERE tc.TABLE_NAME = '{$table_name}' - AND tc.CONSTRAINT_TYPE = 'Primary Key'"; + AND tc.CONSTRAINT_TYPE = 'Primary Key' + AND ccu.COLUMN_NAME = '{$column_name}'"; $result = $this->db->sql_query($sql); |