Commit 51d2cf5d authored by Romain Courteaud's avatar Romain Courteaud

slapos_mysql_innodb_catalog: keep consistency primary key simple

No need for a multi column primary key, as only one line is used per object.
This will speed up update of the table.
parent ed0e099a
CREATE TABLE `consistency` (
`uid` BIGINT UNSIGNED NOT NULL,
`consistency_error` BOOL DEFAULT 0,
PRIMARY KEY (`uid`, `consistency_error`)
PRIMARY KEY (`uid`),
KEY `consistency_error` (`consistency_error`)
) ENGINE=InnoDB;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment