Adding missing migration index key

This commit is contained in:
softsimon
2022-07-03 20:03:58 +02:00
parent f2e42b17a7
commit a8fd04e2f0

View File

@@ -199,7 +199,8 @@ class DatabaseMigration {
alias varchar(200) CHARACTER SET utf8mb4 NOT NULL,
color varchar(200) NOT NULL,
sockets text DEFAULT NULL,
PRIMARY KEY (public_key)
PRIMARY KEY (public_key),
KEY alias (alias(10))
) ENGINE=InnoDB DEFAULT CHARSET=utf8;`;
}