mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2025-01-09 17:57:39 +01:00
Fix keysize issue once more
This commit is contained in:
parent
36090e8545
commit
3f82a821a2
@ -162,7 +162,7 @@ public String selectMapIds() {
|
|||||||
@Language("MySQL")
|
@Language("MySQL")
|
||||||
public String initializeStorageMeta() {
|
public String initializeStorageMeta() {
|
||||||
return "CREATE TABLE IF NOT EXISTS `bluemap_storage_meta` (" +
|
return "CREATE TABLE IF NOT EXISTS `bluemap_storage_meta` (" +
|
||||||
"`key` varchar(255) NOT NULL, " +
|
"`key` varchar(190) NOT NULL, " +
|
||||||
"`value` varchar(255) DEFAULT NULL, " +
|
"`value` varchar(255) DEFAULT NULL, " +
|
||||||
"PRIMARY KEY (`key`)" +
|
"PRIMARY KEY (`key`)" +
|
||||||
") COLLATE 'utf8mb4_bin'";
|
") COLLATE 'utf8mb4_bin'";
|
||||||
@ -187,7 +187,7 @@ public String insertStorageMeta() {
|
|||||||
public String initializeMap() {
|
public String initializeMap() {
|
||||||
return "CREATE TABLE `bluemap_map` (" +
|
return "CREATE TABLE `bluemap_map` (" +
|
||||||
"`id` SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT," +
|
"`id` SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT," +
|
||||||
"`map_id` VARCHAR(255) NOT NULL," +
|
"`map_id` VARCHAR(190) NOT NULL," +
|
||||||
"PRIMARY KEY (`id`)," +
|
"PRIMARY KEY (`id`)," +
|
||||||
"UNIQUE INDEX `map_id` (`map_id`)" +
|
"UNIQUE INDEX `map_id` (`map_id`)" +
|
||||||
") COLLATE 'utf8mb4_bin';";
|
") COLLATE 'utf8mb4_bin';";
|
||||||
@ -198,7 +198,7 @@ public String initializeMap() {
|
|||||||
public String initializeMapTileCompression() {
|
public String initializeMapTileCompression() {
|
||||||
return "CREATE TABLE `bluemap_map_tile_compression` (" +
|
return "CREATE TABLE `bluemap_map_tile_compression` (" +
|
||||||
"`id` SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT," +
|
"`id` SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT," +
|
||||||
"`compression` VARCHAR(255) NOT NULL," +
|
"`compression` VARCHAR(190) NOT NULL," +
|
||||||
"PRIMARY KEY (`id`)," +
|
"PRIMARY KEY (`id`)," +
|
||||||
"UNIQUE INDEX `compression` (`compression`)" +
|
"UNIQUE INDEX `compression` (`compression`)" +
|
||||||
") COLLATE 'utf8mb4_bin';";
|
") COLLATE 'utf8mb4_bin';";
|
||||||
@ -209,7 +209,7 @@ public String initializeMapTileCompression() {
|
|||||||
public String initializeMapMeta() {
|
public String initializeMapMeta() {
|
||||||
return "CREATE TABLE `bluemap_map_meta` (" +
|
return "CREATE TABLE `bluemap_map_meta` (" +
|
||||||
"`map` SMALLINT UNSIGNED NOT NULL," +
|
"`map` SMALLINT UNSIGNED NOT NULL," +
|
||||||
"`key` varchar(255) NOT NULL," +
|
"`key` varchar(190) NOT NULL," +
|
||||||
"`value` LONGBLOB NOT NULL," +
|
"`value` LONGBLOB NOT NULL," +
|
||||||
"PRIMARY KEY (`map`, `key`)," +
|
"PRIMARY KEY (`map`, `key`)," +
|
||||||
"CONSTRAINT `fk_bluemap_map_meta_map` FOREIGN KEY (`map`) REFERENCES `bluemap_map` (`id`) ON UPDATE RESTRICT ON DELETE RESTRICT" +
|
"CONSTRAINT `fk_bluemap_map_meta_map` FOREIGN KEY (`map`) REFERENCES `bluemap_map` (`id`) ON UPDATE RESTRICT ON DELETE RESTRICT" +
|
||||||
|
Loading…
Reference in New Issue
Block a user