Skip to content
Snippets Groups Projects
Commit 677be383 authored by Andy Yates's avatar Andy Yates
Browse files

Names can exceed 255 characters. Switched to TEXT which gives us 64K strings...

Names can exceed 255 characters. Switched to TEXT which gives us 64K strings and added a 50 char prefix index to the table
parent f51ac0c3
No related branches found
No related tags found
No related merge requests found
......@@ -50,11 +50,11 @@ CREATE TABLE term (
CREATE TABLE synonym (
synonym_id INT UNSIGNED NOT NULL AUTO_INCREMENT,
term_id INT UNSIGNED NOT NULL,
name VARCHAR(255) NOT NULL,
name TEXT NOT NULL,
PRIMARY KEY (synonym_id),
UNIQUE INDEX term_synonym_idx (term_id, synonym_id),
INDEX name_idx (name)
INDEX name_idx (name(50))
);
CREATE TABLE relation_type (
......
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