Corrected schema and added migrations for the popularplaces table.

Region category returned by Datasnapshot module is a string and not an integer.
This commit is contained in:
Kevin Cozens
2018-05-14 15:41:08 -04:00
parent f9a7430e63
commit b21c7adff1
2 changed files with 8 additions and 1 deletions
+6
View File
@@ -62,3 +62,9 @@ COMMIT;
BEGIN;
ALTER TABLE `events` ADD `parcelUUID` CHAR( 36 ) NOT NULL AFTER `simname`;
COMMIT;
#Revision 9
BEGIN;
ALTER TABLE `popularplaces` CHANGE `mature` `mature` varchar(10) COLLATE utf8_unicode_ci NOT NULL;
ALTER TABLE `popularplaces` ADD PRIMARY KEY (`parcelUUID`);
COMMIT;
+2 -1
View File
@@ -168,7 +168,8 @@ CREATE TABLE IF NOT EXISTS `popularplaces` (
`dwell` float NOT NULL,
`infoUUID` char(36) NOT NULL,
`has_picture` tinyint(1) NOT NULL,
`mature` tinyint(4) NOT NULL
`mature` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`parcelUUID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------