Character name field is always unique, updated init migration

This commit is contained in:
2024-06-02 22:09:36 +02:00
parent 9223afe9f1
commit c25b21c5c7
4 changed files with 23 additions and 1 deletions

View File

@ -23,6 +23,7 @@ CREATE TABLE `Character` (
`rotation` INTEGER NOT NULL,
`zoneId` INTEGER NOT NULL,
UNIQUE INDEX `Character_name_key`(`name`),
PRIMARY KEY (`id`)
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;