Bug #24156
closedDBAL does not support multi-column indexes in create table queries
0%
Description
When DBAL is active, the install tool tries to create the sys_registry table. This table contains a UNIQUE key on two columns. The query parser fails to recognize this and creates:
CREATE TABLE sys_registry ( uid int(11) unsigned NOT NULL auto_increment, entry_namespace varchar(128) NOT NULL default '', entry_key varchar(128) NOT NULL default '', entry_value blob, PRIMARY KEY (uid), UNIQUE (Array) );
How to reproduce:
- (temporarily) remove sys_registry table
- install DBAL
- in Install Tool: Database Analyzer > COMPARE
- let tool try to create the sys_registry table
(issue imported from #M16501)
Files
Updated by Xavier Perseguers almost 14 years ago
original create table definition is found in t3lib/stddb/tables.sql:
#- Table structure for table 'sys_registry'
#
CREATE TABLE sys_registry (
uid int(11) unsigned NOT NULL auto_increment,
entry_namespace varchar(128) DEFAULT '' NOT NULL,
entry_key varchar(128) DEFAULT '' NOT NULL,
entry_value blob,
PRIMARY KEY (uid),
UNIQUE KEY entry_identifier (entry_namespace,entry_key)
);
Updated by Xavier Perseguers almost 14 years ago
Committed to:
- DBAL trunk (rev. 40682)
- Core trunk (rev. 9689)
- Core 4-4 (rev. 9690)
- Core 4-3 (rev. 9691)