Commit 76c536e1 authored by Romain Courteaud's avatar Romain Courteaud Committed by Rafael Monnerat

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 96e66d22
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