2024-01-19 08:56:28 +00:00
|
|
|
/* Manually run this script in MySQL Workbench or some other database client
|
|
|
|
to migrate your old (pre Jan 19th 2022) monsterbook table to the new version */
|
2024-01-25 05:08:43 +00:00
|
|
|
ALTER TABLE sweetgum.`monsterbook`
|
2024-01-19 08:56:28 +00:00
|
|
|
CHANGE COLUMN `charid` `charid` INT(11) NOT NULL,
|
|
|
|
ADD PRIMARY KEY (`charid`, `cardid`),
|
2024-01-25 05:08:43 +00:00
|
|
|
ADD CONSTRAINT `FK_monsterbook_1` FOREIGN KEY (`charid`) REFERENCES `characters` (`id`) ON UPDATE CASCADE ON DELETE CASCADE;
|