diff --git a/pages/api/uploadLayerImage.js b/pages/api/uploadLayerImage.js index 96df34e..6c491e7 100644 --- a/pages/api/uploadLayerImage.js +++ b/pages/api/uploadLayerImage.js @@ -23,7 +23,7 @@ if ( ) { throw new Error( `must provide DTI_AWS_ACCESS_KEY_ID and DTI_AWS_SECRET_ACCESS_KEY ` + - `environment variables` + `environment variables`, ); } @@ -87,7 +87,7 @@ async function handle(req, res) { const { layerId } = req.query; const [layerRows] = await db.execute( `SELECT * FROM swf_assets WHERE id = ?`, - [layerId] + [layerId], ); const layer = normalizeRow(layerRows[0]); if (!layer) { @@ -105,7 +105,7 @@ async function handle(req, res) { const [result] = await db.execute( `UPDATE swf_assets SET image_manual = 1, converted_at = ? WHERE type = ? AND remote_id = ? LIMIT 1`, - [now, assetType, remoteId] + [now, assetType, remoteId], ); if (result.affectedRows !== 1) { res @@ -115,30 +115,22 @@ async function handle(req, res) { if (process.env["SUPPORT_TOOLS_DISCORD_WEBHOOK_URL"]) { try { - const { - itemLoader, - itemTranslationLoader, - zoneTranslationLoader, - } = buildLoaders(db); + const { itemLoader, itemTranslationLoader, zoneLoader } = + buildLoaders(db); // Copied from setLayerBodyId mutation const itemId = await db .execute( `SELECT parent_id FROM parents_swf_assets WHERE swf_asset_id = ? AND parent_type = "Item" LIMIT 1;`, - [layerId] + [layerId], ) .then(([rows]) => normalizeRow(rows[0]).parentId); - const [ - item, - itemTranslation, - zoneTranslation, - bodyName, - ] = await Promise.all([ + const [item, itemTranslation, zone, bodyName] = await Promise.all([ itemLoader.load(itemId), itemTranslationLoader.load(itemId), - zoneTranslationLoader.load(layer.zoneId), + zoneLoader.load(layer.zoneId), loadBodyName(layer.bodyId, db), ]); @@ -153,7 +145,7 @@ async function handle(req, res) { }, fields: [ { - name: `Layer ${layerId} (${zoneTranslation.label})`, + name: `Layer ${layerId} (${zone.label})`, value: `🎹 Uploaded new PNG for ${bodyName}`, }, ], @@ -173,7 +165,7 @@ async function handle(req, res) { async function handleWithBeeline(req, res) { beeline.withTrace( { name: "api/uploadLayerImage", operation_name: "api/uploadLayerImage" }, - () => handle(req, res) + () => handle(req, res), ); } diff --git a/scripts/db/export/public-data.sh b/scripts/db/export/public-data.sh index 796e8b5..aba6e7d 100755 --- a/scripts/db/export/public-data.sh +++ b/scripts/db/export/public-data.sh @@ -1,5 +1,4 @@ -yarn run --silent mysqldump openneo_impress species species_translations colors \ - color_translations zones zone_translations \ +yarn run --silent mysqldump openneo_impress species colors zones \ > $(dirname $0)/../public-data-constants.sql \ && yarn run --silent mysqldump openneo_impress alt_styles items item_translations \ parents_swf_assets pet_states pet_types swf_assets \ diff --git a/scripts/db/export/schema.sh b/scripts/db/export/schema.sh index 18118a3..0b5174f 100755 --- a/scripts/db/export/schema.sh +++ b/scripts/db/export/schema.sh @@ -1,7 +1,6 @@ yarn run --silent mysqldump --no-data openneo_impress closet_hangers closet_lists \ - colors color_translations items item_translations modeling_logs \ - parents_swf_assets pet_types pet_states species species_translations \ - swf_assets users zones zone_translations \ + colors items item_translations modeling_logs parents_swf_assets pet_types \ + pet_states species swf_assets users zones \ | \ sed 's/ AUTO_INCREMENT=[0-9]*//g' \ > $(dirname $0)/../schema-for-impress.sql \ diff --git a/scripts/db/public-data-constants.sql b/scripts/db/public-data-constants.sql index 964b94d..5cc9540 100644 --- a/scripts/db/public-data-constants.sql +++ b/scripts/db/public-data-constants.sql @@ -39,36 +39,6 @@ INSERT INTO `species` VALUES (1,'acara'),(2,'aisha'),(3,'blumaroo'),(4,'bori'),( /*!40000 ALTER TABLE `species` ENABLE KEYS */; UNLOCK TABLES; --- --- Table structure for table `species_translations` --- - -DROP TABLE IF EXISTS `species_translations`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `species_translations` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `species_id` int(11) DEFAULT NULL, - `locale` varchar(255) DEFAULT NULL, - `name` varchar(255) DEFAULT NULL, - `created_at` datetime DEFAULT NULL, - `updated_at` datetime DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `index_species_translations_on_species_id` (`species_id`), - KEY `index_species_translations_on_locale` (`locale`) -) ENGINE=InnoDB AUTO_INCREMENT=221 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `species_translations` --- - -LOCK TABLES `species_translations` WRITE; -/*!40000 ALTER TABLE `species_translations` DISABLE KEYS */; -INSERT INTO `species_translations` VALUES (1,1,'en','acara','2013-01-27 06:10:44','2013-01-27 06:10:44'),(2,2,'en','aisha','2013-01-27 06:10:44','2013-01-27 06:10:44'),(3,3,'en','blumaroo','2013-01-27 06:10:44','2013-01-27 06:10:44'),(4,4,'en','bori','2013-01-27 06:10:44','2013-01-27 06:10:44'),(5,5,'en','bruce','2013-01-27 06:10:44','2013-01-27 06:10:44'),(6,6,'en','buzz','2013-01-27 06:10:44','2013-01-27 06:10:44'),(7,7,'en','chia','2013-01-27 06:10:44','2013-01-27 06:10:44'),(8,8,'en','chomby','2013-01-27 06:10:44','2013-01-27 06:10:44'),(9,9,'en','cybunny','2013-01-27 06:10:44','2013-01-27 06:10:44'),(10,10,'en','draik','2013-01-27 06:10:44','2013-01-27 06:10:44'),(11,11,'en','elephante','2013-01-27 06:10:44','2013-01-27 06:10:44'),(12,12,'en','eyrie','2013-01-27 06:10:44','2013-01-27 06:10:44'),(13,13,'en','flotsam','2013-01-27 06:10:44','2013-01-27 06:10:44'),(14,14,'en','gelert','2013-01-27 06:10:44','2013-01-27 06:10:44'),(15,15,'en','gnorbu','2013-01-27 06:10:44','2013-01-27 06:10:44'),(16,16,'en','grarrl','2013-01-27 06:10:44','2013-01-27 06:10:44'),(17,17,'en','grundo','2013-01-27 06:10:44','2013-01-27 06:10:44'),(18,18,'en','hissi','2013-01-27 06:10:44','2013-01-27 06:10:44'),(19,19,'en','ixi','2013-01-27 06:10:44','2013-01-27 06:10:44'),(20,20,'en','jetsam','2013-01-27 06:10:44','2013-01-27 06:10:44'),(21,21,'en','jubjub','2013-01-27 06:10:44','2013-01-27 06:10:44'),(22,22,'en','kacheek','2013-01-27 06:10:44','2013-01-27 06:10:44'),(23,23,'en','kau','2013-01-27 06:10:44','2013-01-27 06:10:44'),(24,24,'en','kiko','2013-01-27 06:10:44','2013-01-27 06:10:44'),(25,25,'en','koi','2013-01-27 06:10:44','2013-01-27 06:10:44'),(26,26,'en','korbat','2013-01-27 06:10:44','2013-01-27 06:10:44'),(27,27,'en','kougra','2013-01-27 06:10:44','2013-01-27 06:10:44'),(28,28,'en','krawk','2013-01-27 06:10:44','2013-01-27 06:10:44'),(29,29,'en','kyrii','2013-01-27 06:10:44','2013-01-27 06:10:44'),(30,30,'en','lenny','2013-01-27 06:10:44','2013-01-27 06:10:44'),(31,31,'en','lupe','2013-01-27 06:10:44','2013-01-27 06:10:44'),(32,32,'en','lutari','2013-01-27 06:10:44','2013-01-27 06:10:44'),(33,33,'en','meerca','2013-01-27 06:10:44','2013-01-27 06:10:44'),(34,34,'en','moehog','2013-01-27 06:10:44','2013-01-27 06:10:44'),(35,35,'en','mynci','2013-01-27 06:10:44','2013-01-27 06:10:44'),(36,36,'en','nimmo','2013-01-27 06:10:44','2013-01-27 06:10:44'),(37,37,'en','ogrin','2013-01-27 06:10:44','2013-01-27 06:10:44'),(38,38,'en','peophin','2013-01-27 06:10:44','2013-01-27 06:10:44'),(39,39,'en','poogle','2013-01-27 06:10:44','2013-01-27 06:10:44'),(40,40,'en','pteri','2013-01-27 06:10:44','2013-01-27 06:10:44'),(41,41,'en','quiggle','2013-01-27 06:10:44','2013-01-27 06:10:44'),(42,42,'en','ruki','2013-01-27 06:10:44','2013-01-27 06:10:44'),(43,43,'en','scorchio','2013-01-27 06:10:44','2013-01-27 06:10:44'),(44,44,'en','shoyru','2013-01-27 06:10:44','2013-01-27 06:10:44'),(45,45,'en','skeith','2013-01-27 06:10:44','2013-01-27 06:10:44'),(46,46,'en','techo','2013-01-27 06:10:44','2013-01-27 06:10:44'),(47,47,'en','tonu','2013-01-27 06:10:44','2013-01-27 06:10:44'),(48,48,'en','tuskaninny','2013-01-27 06:10:44','2013-01-27 06:10:44'),(49,49,'en','uni','2013-01-27 06:10:44','2013-01-27 06:10:44'),(50,50,'en','usul','2013-01-27 06:10:44','2013-01-27 06:10:44'),(51,51,'en','wocky','2013-01-27 06:10:44','2013-01-27 06:10:44'),(52,52,'en','xweetok','2013-01-27 06:10:44','2013-01-27 06:10:44'),(53,53,'en','yurble','2013-01-27 06:10:44','2013-01-27 06:10:44'),(54,54,'en','zafara','2013-01-27 06:10:44','2013-01-27 06:10:44'),(55,1,'pt','acara','2013-01-27 06:11:49','2013-01-27 06:11:49'),(56,2,'pt','aisha','2013-01-27 06:11:49','2013-01-27 06:11:49'),(57,3,'pt','blumaroo','2013-01-27 06:11:49','2013-01-27 06:11:49'),(58,4,'pt','bori','2013-01-27 06:11:49','2013-01-27 06:11:49'),(59,5,'pt','bruce','2013-01-27 06:11:49','2013-01-27 06:11:49'),(60,6,'pt','buzz','2013-01-27 06:11:49','2013-01-27 06:11:49'),(61,7,'pt','chia','2013-01-27 06:11:49','2013-01-27 06:11:49'),(62,8,'pt','chomby','2013-01-27 06:11:49','2013-01-27 06:11:49'),(63,9,'pt','cybunny','2013-01-27 06:11:49','2013-01-27 06:11:49'),(64,10,'pt','draik','2013-01-27 06:11:49','2013-01-27 06:11:49'),(65,11,'pt','elephante','2013-01-27 06:11:49','2013-01-27 06:11:49'),(66,12,'pt','eyrie','2013-01-27 06:11:49','2013-01-27 06:11:49'),(67,13,'pt','flotsam','2013-01-27 06:11:49','2013-01-27 06:11:49'),(68,14,'pt','gelert','2013-01-27 06:11:49','2013-01-27 06:11:49'),(69,15,'pt','gnorbu','2013-01-27 06:11:49','2013-01-27 06:11:49'),(70,16,'pt','grarrl','2013-01-27 06:11:49','2013-01-27 06:11:49'),(71,17,'pt','grundo','2013-01-27 06:11:49','2013-01-27 06:11:49'),(72,18,'pt','hissi','2013-01-27 06:11:49','2013-01-27 06:11:49'),(73,19,'pt','ixi','2013-01-27 06:11:49','2013-01-27 06:11:49'),(74,20,'pt','jetsam','2013-01-27 06:11:49','2013-01-27 06:11:49'),(75,21,'pt','jubjub','2013-01-27 06:11:49','2013-01-27 06:11:49'),(76,22,'pt','kacheek','2013-01-27 06:11:49','2013-01-27 06:11:49'),(77,23,'pt','kau','2013-01-27 06:11:49','2013-01-27 06:11:49'),(78,24,'pt','kiko','2013-01-27 06:11:49','2013-01-27 06:11:49'),(79,25,'pt','koi','2013-01-27 06:11:49','2013-01-27 06:11:49'),(80,26,'pt','korbat','2013-01-27 06:11:49','2013-01-27 06:11:49'),(81,27,'pt','kougra','2013-01-27 06:11:49','2013-01-27 06:11:49'),(82,28,'pt','krawk','2013-01-27 06:11:49','2013-01-27 06:11:49'),(83,29,'pt','kyrii','2013-01-27 06:11:49','2013-01-27 06:11:49'),(84,30,'pt','lenny','2013-01-27 06:11:49','2013-01-27 06:11:49'),(85,31,'pt','lupe','2013-01-27 06:11:49','2013-01-27 06:11:49'),(86,32,'pt','lutari','2013-01-27 06:11:49','2013-01-27 06:11:49'),(87,33,'pt','meerca','2013-01-27 06:11:49','2013-01-27 06:11:49'),(88,34,'pt','moehog','2013-01-27 06:11:49','2013-01-27 06:11:49'),(89,35,'pt','mynci','2013-01-27 06:11:49','2013-01-27 06:11:50'),(90,36,'pt','nimmo','2013-01-27 06:11:50','2013-01-27 06:11:50'),(91,37,'pt','ogrin','2013-01-27 06:11:50','2013-01-27 06:11:50'),(92,38,'pt','peophin','2013-01-27 06:11:50','2013-01-27 06:11:50'),(93,39,'pt','poogle','2013-01-27 06:11:50','2013-01-27 06:11:50'),(94,40,'pt','pteri','2013-01-27 06:11:50','2013-01-27 06:11:50'),(95,41,'pt','quiggle','2013-01-27 06:11:50','2013-01-27 06:11:50'),(96,42,'pt','ruki','2013-01-27 06:11:50','2013-01-27 06:11:50'),(97,43,'pt','scorchio','2013-01-27 06:11:50','2013-01-27 06:11:50'),(98,44,'pt','shoyru','2013-01-27 06:11:50','2013-01-27 06:11:50'),(99,45,'pt','skeith','2013-01-27 06:11:50','2013-01-27 06:11:50'),(100,46,'pt','techo','2013-01-27 06:11:50','2013-01-27 06:11:50'),(101,47,'pt','tonu','2013-01-27 06:11:50','2013-01-27 06:11:50'),(102,48,'pt','tuskaninny','2013-01-27 06:11:50','2013-01-27 06:11:50'),(103,49,'pt','uni','2013-01-27 06:11:50','2013-01-27 06:11:50'),(104,50,'pt','usul','2013-01-27 06:11:50','2013-01-27 06:11:50'),(105,51,'pt','wocky','2013-01-27 06:11:50','2013-01-27 06:11:50'),(106,52,'pt','xweetok','2013-01-27 06:11:50','2013-01-27 06:11:50'),(107,53,'pt','yurble','2013-01-27 06:11:50','2013-01-27 06:11:50'),(108,54,'pt','zafara','2013-01-27 06:11:50','2013-01-27 06:11:50'),(109,1,'en-MEEP','acara','2013-01-28 02:46:51','2013-01-28 02:46:51'),(110,2,'en-MEEP','aisha','2013-01-28 02:46:52','2013-01-28 02:46:52'),(111,3,'en-MEEP','blumaroo','2013-01-28 02:46:52','2013-01-28 02:46:52'),(112,4,'en-MEEP','bori','2013-01-28 02:46:52','2013-01-28 02:46:52'),(113,5,'en-MEEP','bruce','2013-01-28 02:46:52','2013-01-28 02:46:52'),(114,6,'en-MEEP','buzz','2013-01-28 02:46:52','2013-01-28 02:46:52'),(115,7,'en-MEEP','chia','2013-01-28 02:46:52','2013-01-28 02:46:52'),(116,8,'en-MEEP','chomby','2013-01-28 02:46:52','2013-01-28 02:46:52'),(117,9,'en-MEEP','cybunny','2013-01-28 02:46:52','2013-01-28 02:46:52'),(118,10,'en-MEEP','draik','2013-01-28 02:46:52','2013-01-28 02:46:52'),(119,11,'en-MEEP','elephante','2013-01-28 02:46:52','2013-01-28 02:46:52'),(120,12,'en-MEEP','eyrie','2013-01-28 02:46:52','2013-01-28 02:46:52'),(121,13,'en-MEEP','flotsam','2013-01-28 02:46:52','2013-01-28 02:46:52'),(122,14,'en-MEEP','gelert','2013-01-28 02:46:52','2013-01-28 02:46:52'),(123,15,'en-MEEP','gnorbu','2013-01-28 02:46:52','2013-01-28 02:46:52'),(124,16,'en-MEEP','grarrl','2013-01-28 02:46:52','2013-01-28 02:46:52'),(125,17,'en-MEEP','grundo','2013-01-28 02:46:52','2013-01-28 02:46:52'),(126,18,'en-MEEP','hissi','2013-01-28 02:46:52','2013-01-28 02:46:52'),(127,19,'en-MEEP','ixi','2013-01-28 02:46:52','2013-01-28 02:46:52'),(128,20,'en-MEEP','jetsam','2013-01-28 02:46:52','2013-01-28 02:46:52'),(129,21,'en-MEEP','jubjub','2013-01-28 02:46:52','2013-01-28 02:46:52'),(130,22,'en-MEEP','kacheek','2013-01-28 02:46:52','2013-01-28 02:46:52'),(131,23,'en-MEEP','kau','2013-01-28 02:46:52','2013-01-28 02:46:52'),(132,24,'en-MEEP','kiko','2013-01-28 02:46:52','2013-01-28 02:46:52'),(133,25,'en-MEEP','koi','2013-01-28 02:46:52','2013-01-28 02:46:52'),(134,26,'en-MEEP','korbat','2013-01-28 02:46:52','2013-01-28 02:46:52'),(135,27,'en-MEEP','kougra','2013-01-28 02:46:52','2013-01-28 02:46:52'),(136,28,'en-MEEP','krawk','2013-01-28 02:46:52','2013-01-28 02:46:52'),(137,29,'en-MEEP','kyrii','2013-01-28 02:46:52','2013-01-28 02:46:52'),(138,30,'en-MEEP','lenny','2013-01-28 02:46:52','2013-01-28 02:46:52'),(139,31,'en-MEEP','lupe','2013-01-28 02:46:52','2013-01-28 02:46:52'),(140,32,'en-MEEP','lutari','2013-01-28 02:46:52','2013-01-28 02:46:52'),(141,33,'en-MEEP','meerca','2013-01-28 02:46:52','2013-01-28 02:46:52'),(142,34,'en-MEEP','moehog','2013-01-28 02:46:52','2013-01-28 02:46:52'),(143,35,'en-MEEP','mynci','2013-01-28 02:46:52','2013-01-28 02:46:52'),(144,36,'en-MEEP','nimmo','2013-01-28 02:46:52','2013-01-28 02:46:52'),(145,37,'en-MEEP','ogrin','2013-01-28 02:46:52','2013-01-28 02:46:52'),(146,38,'en-MEEP','peophin','2013-01-28 02:46:52','2013-01-28 02:46:52'),(147,39,'en-MEEP','poogle','2013-01-28 02:46:52','2013-01-28 02:46:52'),(148,40,'en-MEEP','pteri','2013-01-28 02:46:52','2013-01-28 02:46:52'),(149,41,'en-MEEP','quiggle','2013-01-28 02:46:52','2013-01-28 02:46:52'),(150,42,'en-MEEP','ruki','2013-01-28 02:46:52','2013-01-28 02:46:52'),(151,43,'en-MEEP','scorchio','2013-01-28 02:46:52','2013-01-28 02:46:52'),(152,44,'en-MEEP','shoyru','2013-01-28 02:46:52','2013-01-28 02:46:52'),(153,45,'en-MEEP','skeith','2013-01-28 02:46:52','2013-01-28 02:46:52'),(154,46,'en-MEEP','techo','2013-01-28 02:46:52','2013-01-28 02:46:52'),(155,47,'en-MEEP','tonu','2013-01-28 02:46:52','2013-01-28 02:46:52'),(156,48,'en-MEEP','tuskaninny','2013-01-28 02:46:52','2013-01-28 02:46:52'),(157,49,'en-MEEP','uni','2013-01-28 02:46:52','2013-01-28 02:46:52'),(158,50,'en-MEEP','usul','2013-01-28 02:46:52','2013-01-28 02:46:52'),(159,51,'en-MEEP','wocky','2013-01-28 02:46:52','2013-01-28 02:46:52'),(160,52,'en-MEEP','xweetok','2013-01-28 02:46:52','2013-01-28 02:46:52'),(161,53,'en-MEEP','yurble','2013-01-28 02:46:52','2013-01-28 02:46:52'),(162,54,'en-MEEP','zafara','2013-01-28 02:46:52','2013-01-28 02:46:52'),(163,1,'es','acara','2013-02-12 05:33:20','2013-02-12 05:33:20'),(164,2,'es','aisha','2013-02-12 05:33:20','2013-02-12 05:33:20'),(165,3,'es','blumaroo','2013-02-12 05:33:20','2013-02-12 05:33:20'),(166,4,'es','bori','2013-02-12 05:33:20','2013-02-12 05:33:20'),(167,5,'es','bruce','2013-02-12 05:33:20','2013-02-12 05:33:20'),(168,6,'es','buzz','2013-02-12 05:33:20','2013-02-12 05:33:20'),(169,7,'es','chia','2013-02-12 05:33:20','2013-02-12 05:33:20'),(170,8,'es','chomby','2013-02-12 05:33:20','2013-02-12 05:33:20'),(171,9,'es','cybunny','2013-02-12 05:33:20','2013-02-12 05:33:20'),(172,10,'es','draik','2013-02-12 05:33:20','2013-02-12 05:33:20'),(173,11,'es','elephante','2013-02-12 05:33:20','2013-02-12 05:33:20'),(174,12,'es','eyrie','2013-02-12 05:33:20','2013-02-12 05:33:20'),(175,13,'es','flotsam','2013-02-12 05:33:20','2013-02-12 05:33:20'),(176,14,'es','gelert','2013-02-12 05:33:20','2013-02-12 05:33:20'),(177,15,'es','gnorbu','2013-02-12 05:33:20','2013-02-12 05:33:20'),(178,16,'es','grarrl','2013-02-12 05:33:20','2013-02-12 05:33:20'),(179,17,'es','grundo','2013-02-12 05:33:20','2013-02-12 05:33:20'),(180,18,'es','hissi','2013-02-12 05:33:20','2013-02-12 05:33:20'),(181,19,'es','ixi','2013-02-12 05:33:20','2013-02-12 05:33:20'),(182,20,'es','jetsam','2013-02-12 05:33:20','2013-02-12 05:33:20'),(183,21,'es','jubjub','2013-02-12 05:33:20','2013-02-12 05:33:20'),(184,22,'es','kacheek','2013-02-12 05:33:20','2013-02-12 05:33:20'),(185,23,'es','kau','2013-02-12 05:33:20','2013-02-12 05:33:20'),(186,24,'es','kiko','2013-02-12 05:33:20','2013-02-12 05:33:20'),(187,25,'es','koi','2013-02-12 05:33:20','2013-02-12 05:33:20'),(188,26,'es','korbat','2013-02-12 05:33:20','2013-02-12 05:33:20'),(189,27,'es','kougra','2013-02-12 05:33:20','2013-02-12 05:33:20'),(190,28,'es','krawk','2013-02-12 05:33:20','2013-02-12 05:33:20'),(191,29,'es','kyrii','2013-02-12 05:33:20','2013-02-12 05:33:20'),(192,30,'es','lenny','2013-02-12 05:33:20','2013-02-12 05:33:20'),(193,31,'es','lupe','2013-02-12 05:33:20','2013-02-12 05:33:20'),(194,32,'es','lutari','2013-02-12 05:33:20','2013-02-12 05:33:20'),(195,33,'es','meerca','2013-02-12 05:33:20','2013-02-12 05:33:20'),(196,34,'es','moehog','2013-02-12 05:33:20','2013-02-12 05:33:20'),(197,35,'es','mynci','2013-02-12 05:33:20','2013-02-12 05:33:20'),(198,36,'es','nimmo','2013-02-12 05:33:20','2013-02-12 05:33:20'),(199,37,'es','ogrin','2013-02-12 05:33:20','2013-02-12 05:33:20'),(200,38,'es','peophin','2013-02-12 05:33:20','2013-02-12 05:33:20'),(201,39,'es','poogle','2013-02-12 05:33:20','2013-02-12 05:33:20'),(202,40,'es','pteri','2013-02-12 05:33:20','2013-02-12 05:33:20'),(203,41,'es','quiggle','2013-02-12 05:33:20','2013-02-12 05:33:20'),(204,42,'es','ruki','2013-02-12 05:33:20','2013-02-12 05:33:20'),(205,43,'es','scorchio','2013-02-12 05:33:20','2013-02-12 05:33:20'),(206,44,'es','shoyru','2013-02-12 05:33:20','2013-02-12 05:33:20'),(207,45,'es','skeith','2013-02-12 05:33:20','2013-02-12 05:33:20'),(208,46,'es','techo','2013-02-12 05:33:20','2013-02-12 05:33:20'),(209,47,'es','tonu','2013-02-12 05:33:20','2013-02-12 05:33:20'),(210,48,'es','tuskaninny','2013-02-12 05:33:20','2013-02-12 05:33:20'),(211,49,'es','uni','2013-02-12 05:33:20','2013-02-12 05:33:20'),(212,50,'es','usul','2013-02-12 05:33:20','2013-02-12 05:33:20'),(213,51,'es','wocky','2013-02-12 05:33:20','2013-02-12 05:33:20'),(214,52,'es','xweetok','2013-02-12 05:33:20','2013-02-12 05:33:20'),(215,53,'es','yurble','2013-02-12 05:33:20','2013-02-12 05:33:20'),(216,54,'es','zafara','2013-02-12 05:33:20','2013-02-12 05:33:20'),(217,55,'en','vandagyre','2014-11-12 19:25:07','2014-11-12 19:27:08'),(218,55,'pt','Vandagyre','2014-11-15 01:46:46','2014-11-15 01:46:46'),(219,55,'es','Vandagyre','2014-11-15 01:46:46','2014-11-15 01:46:46'),(220,55,'en-MEEP','Vandagyre','2014-11-15 01:47:04','2014-11-15 01:47:04'); -/*!40000 ALTER TABLE `species_translations` ENABLE KEYS */; -UNLOCK TABLES; - -- -- Table structure for table `colors` -- @@ -96,36 +66,6 @@ INSERT INTO `colors` VALUES (-1,0,1,1,'nebula'),(1,0,1,0,'alien'),(2,0,0,0,'appl /*!40000 ALTER TABLE `colors` ENABLE KEYS */; UNLOCK TABLES; --- --- Table structure for table `color_translations` --- - -DROP TABLE IF EXISTS `color_translations`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `color_translations` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `color_id` int(11) DEFAULT NULL, - `locale` varchar(255) DEFAULT NULL, - `name` varchar(255) DEFAULT NULL, - `created_at` datetime DEFAULT NULL, - `updated_at` datetime DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `index_color_translations_on_color_id` (`color_id`), - KEY `index_color_translations_on_locale` (`locale`) -) ENGINE=InnoDB AUTO_INCREMENT=433 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `color_translations` --- - -LOCK TABLES `color_translations` WRITE; -/*!40000 ALTER TABLE `color_translations` DISABLE KEYS */; -INSERT INTO `color_translations` VALUES (1,1,'en','alien','2013-01-27 06:10:44','2013-01-27 06:10:44'),(2,2,'en','apple','2013-01-27 06:10:44','2013-01-27 06:10:44'),(3,3,'en','asparagus','2013-01-27 06:10:44','2013-01-27 06:10:44'),(4,4,'en','aubergine','2013-01-27 06:10:44','2013-01-27 06:10:44'),(5,5,'en','avocado','2013-01-27 06:10:44','2013-01-27 06:10:44'),(6,6,'en','baby','2013-01-27 06:10:44','2013-01-27 06:10:44'),(7,7,'en','biscuit','2013-01-27 06:10:44','2013-01-27 06:10:44'),(8,8,'en','blue','2013-01-27 06:10:44','2013-01-27 06:10:44'),(9,9,'en','blueberry','2013-01-27 06:10:44','2013-01-27 06:10:44'),(10,10,'en','brown','2013-01-27 06:10:44','2013-01-27 06:10:44'),(11,11,'en','camouflage','2013-01-27 06:10:44','2013-01-27 06:10:44'),(12,12,'en','carrot','2013-01-27 06:10:44','2013-01-27 06:10:44'),(13,13,'en','checkered','2013-01-27 06:10:44','2013-01-27 06:10:44'),(14,14,'en','chocolate','2013-01-27 06:10:44','2013-01-27 06:10:44'),(15,15,'en','chokato','2013-01-27 06:10:44','2013-01-27 06:10:44'),(16,16,'en','christmas','2013-01-27 06:10:44','2013-01-27 06:10:44'),(17,17,'en','clay','2013-01-27 06:10:44','2013-01-27 06:10:44'),(18,18,'en','cloud','2013-01-27 06:10:44','2013-01-27 06:10:44'),(19,19,'en','coconut','2013-01-27 06:10:44','2013-01-27 06:10:44'),(20,20,'en','custard','2013-01-27 06:10:44','2013-01-27 06:10:44'),(21,21,'en','darigan','2013-01-27 06:10:44','2013-01-27 06:10:44'),(22,22,'en','desert','2013-01-27 06:10:44','2013-01-27 06:10:44'),(23,23,'en','disco','2013-01-27 06:10:44','2013-01-27 06:10:44'),(24,24,'en','durian','2013-01-27 06:10:44','2013-01-27 06:10:44'),(25,25,'en','electric','2013-01-27 06:10:44','2013-01-27 06:10:44'),(26,26,'en','faerie','2013-01-27 06:10:44','2013-01-27 06:10:44'),(27,27,'en','fire','2013-01-27 06:10:44','2013-01-27 06:10:44'),(28,28,'en','garlic','2013-01-27 06:10:44','2013-01-27 06:10:44'),(29,29,'en','ghost','2013-01-27 06:10:44','2013-01-27 06:10:44'),(30,30,'en','glowing','2013-01-27 06:10:44','2013-01-27 06:10:44'),(31,31,'en','gold','2013-01-27 06:10:44','2013-01-27 06:10:44'),(32,32,'en','gooseberry','2013-01-27 06:10:44','2013-01-27 06:10:44'),(33,33,'en','grape','2013-01-27 06:10:44','2013-01-27 06:10:44'),(34,34,'en','green','2013-01-27 06:10:44','2013-01-27 06:10:44'),(35,35,'en','grey','2013-01-27 06:10:44','2013-01-27 06:10:44'),(36,36,'en','halloween','2013-01-27 06:10:44','2013-01-27 06:10:44'),(37,37,'en','ice','2013-01-27 06:10:44','2013-01-27 06:10:44'),(38,38,'en','invisible','2013-01-27 06:10:44','2013-01-27 06:10:44'),(39,39,'en','island','2013-01-27 06:10:44','2013-01-27 06:10:44'),(40,40,'en','jelly','2013-01-27 06:10:44','2013-01-27 06:10:44'),(41,41,'en','lemon','2013-01-27 06:10:44','2013-01-27 06:10:44'),(42,42,'en','lime','2013-01-27 06:10:44','2013-01-27 06:10:44'),(43,43,'en','mallow','2013-01-27 06:10:44','2013-01-27 06:10:44'),(44,44,'en','maraquan','2013-01-27 06:10:44','2013-01-27 06:10:44'),(45,45,'en','msp','2013-01-27 06:10:45','2013-01-27 06:10:45'),(46,46,'en','mutant','2013-01-27 06:10:45','2013-01-27 06:10:45'),(47,47,'en','orange','2013-01-27 06:10:45','2013-01-27 06:10:45'),(48,48,'en','pea','2013-01-27 06:10:45','2013-01-27 06:10:45'),(49,49,'en','peach','2013-01-27 06:10:45','2013-01-27 06:10:45'),(50,50,'en','pear','2013-01-27 06:10:45','2013-01-27 06:10:45'),(51,51,'en','pepper','2013-01-27 06:10:45','2013-01-27 06:10:45'),(52,52,'en','pineapple','2013-01-27 06:10:45','2013-01-27 06:10:45'),(53,53,'en','pink','2013-01-27 06:10:45','2013-01-27 06:10:45'),(54,54,'en','pirate','2013-01-27 06:10:45','2013-01-27 06:10:45'),(55,55,'en','plum','2013-01-27 06:10:45','2013-01-27 06:10:45'),(56,56,'en','plushie','2013-01-27 06:10:45','2013-01-27 06:10:45'),(57,57,'en','purple','2013-01-27 06:10:45','2013-01-27 06:10:45'),(58,58,'en','quigukiboy','2013-01-27 06:10:45','2013-01-27 06:10:45'),(59,59,'en','quigukigirl','2013-01-27 06:10:45','2013-01-27 06:10:45'),(60,60,'en','rainbow','2013-01-27 06:10:45','2013-01-27 06:10:45'),(61,61,'en','red','2013-01-27 06:10:45','2013-01-27 06:10:45'),(62,62,'en','robot','2013-01-27 06:10:45','2013-01-27 06:10:45'),(63,63,'en','royalboy','2013-01-27 06:10:45','2013-01-27 06:10:45'),(64,64,'en','royalgirl','2013-01-27 06:10:45','2013-01-27 06:10:45'),(65,65,'en','shadow','2013-01-27 06:10:45','2013-01-27 06:10:45'),(66,66,'en','silver','2013-01-27 06:10:45','2013-01-27 06:10:45'),(67,67,'en','sketch','2013-01-27 06:10:45','2013-01-27 06:10:45'),(68,68,'en','skunk','2013-01-27 06:10:45','2013-01-27 06:10:45'),(69,69,'en','snot','2013-01-27 06:10:45','2013-01-27 06:10:45'),(70,70,'en','snow','2013-01-27 06:10:45','2013-01-27 06:10:45'),(71,71,'en','speckled','2013-01-27 06:10:45','2013-01-27 06:10:45'),(72,72,'en','split','2013-01-27 06:10:45','2013-01-27 06:10:45'),(73,73,'en','sponge','2013-01-27 06:10:45','2013-01-27 06:10:45'),(74,74,'en','spotted','2013-01-27 06:10:45','2013-01-27 06:10:45'),(75,75,'en','starry','2013-01-27 06:10:45','2013-01-27 06:10:45'),(76,76,'en','strawberry','2013-01-27 06:10:45','2013-01-27 06:10:45'),(77,77,'en','striped','2013-01-27 06:10:45','2013-01-27 06:10:45'),(78,78,'en','thornberry','2013-01-27 06:10:45','2013-01-27 06:10:45'),(79,79,'en','tomato','2013-01-27 06:10:45','2013-01-27 06:10:45'),(80,80,'en','tyrannian','2013-01-27 06:10:45','2013-01-27 06:10:45'),(81,81,'en','usuki boy','2013-01-27 06:10:45','2013-12-21 01:15:29'),(82,82,'en','usuki girl','2013-01-27 06:10:45','2013-12-21 01:15:29'),(83,83,'en','white','2013-01-27 06:10:45','2013-01-27 06:10:45'),(84,84,'en','yellow','2013-01-27 06:10:45','2013-01-27 06:10:45'),(85,85,'en','zombie','2013-01-27 06:10:45','2013-01-27 06:10:45'),(86,86,'en','onion','2013-01-27 06:10:45','2013-01-27 06:10:45'),(87,87,'en','magma','2013-01-27 06:10:45','2013-01-27 06:10:45'),(88,88,'en','relic','2013-01-27 06:10:45','2013-01-27 06:10:45'),(89,89,'en','woodland','2013-01-27 06:10:45','2013-01-27 06:10:45'),(90,90,'en','transparent','2013-01-27 06:10:45','2013-01-27 06:10:45'),(91,91,'en','maractite','2013-01-27 06:10:45','2013-01-27 06:10:45'),(92,92,'en','8-bit','2013-01-27 06:10:45','2013-01-27 06:10:45'),(93,93,'en','swamp gas','2013-01-27 06:10:45','2013-01-27 06:10:45'),(94,94,'en','water','2013-01-27 06:10:45','2013-01-27 06:10:45'),(95,95,'en','wraith','2013-01-27 06:10:45','2013-01-27 06:10:45'),(96,96,'en','eventide','2013-01-27 06:10:45','2013-01-27 06:10:45'),(97,97,'en','elderlyboy','2013-01-27 06:10:45','2013-01-27 06:10:45'),(98,98,'en','elderlygirl','2013-01-27 06:10:45','2013-01-27 06:10:45'),(99,99,'en','stealthy','2013-01-27 06:10:45','2013-01-27 06:10:45'),(100,100,'en','dimensional','2013-01-27 06:10:45','2013-01-27 06:10:45'),(101,94,'pt','Água','2013-01-27 06:11:50','2013-01-27 06:11:50'),(102,92,'pt','8-bit','2013-01-27 06:11:50','2013-01-27 06:11:50'),(103,5,'pt','abacate','2013-01-27 06:11:50','2013-01-27 06:11:50'),(104,52,'pt','abacaxi','2013-01-27 06:11:50','2013-01-27 06:11:50'),(105,28,'pt','alho','2013-01-27 06:11:50','2013-01-27 06:11:50'),(106,1,'pt','alienĂ­gena','2013-01-27 06:11:50','2013-01-27 06:11:50'),(107,84,'pt','amarelo','2013-01-27 06:11:50','2013-01-27 06:11:50'),(108,55,'pt','ameixa','2013-01-27 06:11:50','2013-01-27 06:11:50'),(109,60,'pt','arco-Ă­ris','2013-01-27 06:11:50','2013-01-27 06:11:50'),(110,17,'pt','argila','2013-01-27 06:11:50','2013-01-27 06:11:50'),(111,3,'pt','aspargos','2013-01-27 06:11:50','2013-01-27 06:11:50'),(112,95,'pt','assombração','2013-01-27 06:11:50','2013-01-27 06:11:50'),(113,8,'pt','azul','2013-01-27 06:11:50','2013-01-27 06:11:50'),(114,6,'pt','bebĂȘ','2013-01-27 06:11:50','2013-01-27 06:11:50'),(115,4,'pt','berinjela','2013-01-27 06:11:50','2013-01-27 06:11:50'),(116,7,'pt','biscoito','2013-01-27 06:11:50','2013-01-27 06:11:50'),(117,89,'pt','bosque','2013-01-27 06:11:50','2013-01-27 06:11:50'),(118,83,'pt','branco','2013-01-27 06:11:50','2013-01-27 06:11:50'),(119,30,'pt','brilhante','2013-01-27 06:11:50','2013-01-27 06:11:50'),(120,11,'pt','camuflagem','2013-01-27 06:11:50','2013-01-27 06:11:50'),(121,86,'pt','cebola','2013-01-27 06:11:50','2013-01-27 06:11:50'),(122,12,'pt','cenoura','2013-01-27 06:11:50','2013-01-27 06:11:50'),(123,14,'pt','chocolate','2013-01-27 06:11:50','2013-01-27 06:11:50'),(124,15,'pt','chokato','2013-01-27 06:11:50','2013-01-27 06:11:50'),(125,35,'pt','cinza','2013-01-27 06:11:50','2013-01-27 06:11:50'),(126,19,'pt','coco','2013-01-27 06:11:50','2013-01-27 06:11:50'),(127,20,'pt','creme','2013-01-27 06:11:50','2013-01-27 06:11:50'),(128,96,'pt','crepĂșsculo','2013-01-27 06:11:50','2013-01-27 06:11:50'),(129,21,'pt','darigan','2013-01-27 06:11:50','2013-01-27 06:11:50'),(130,22,'pt','deserto','2013-01-27 06:11:50','2013-01-27 06:11:50'),(131,100,'pt','dimensional','2013-01-27 06:11:50','2013-01-27 06:11:50'),(132,23,'pt','discoteca','2013-01-27 06:11:50','2013-01-27 06:11:50'),(133,72,'pt','dividido','2013-01-27 06:11:50','2013-01-27 06:11:50'),(134,31,'pt','dourado','2013-01-27 06:11:50','2013-01-27 06:11:50'),(135,24,'pt','durian','2013-01-27 06:11:50','2013-01-27 06:11:50'),(136,25,'pt','elĂ©trico','2013-01-27 06:11:50','2013-01-27 06:11:50'),(137,48,'pt','ervilha','2013-01-27 06:11:50','2013-01-27 06:11:50'),(138,73,'pt','esponja','2013-01-27 06:11:50','2013-01-27 06:11:50'),(139,75,'pt','estrelado','2013-01-27 06:11:50','2013-01-27 06:11:50'),(140,26,'pt','fada','2013-01-27 06:11:50','2013-01-27 06:11:50'),(141,29,'pt','fantasma','2013-01-27 06:11:50','2013-01-27 06:11:50'),(142,27,'pt','fogo','2013-01-27 06:11:50','2013-01-27 06:11:50'),(143,78,'pt','frutathorn','2013-01-27 06:11:50','2013-01-27 06:11:50'),(144,68,'pt','gambĂĄ','2013-01-27 06:11:50','2013-01-27 06:11:50'),(145,82,'pt','garota usuki','2013-01-27 06:11:50','2013-01-27 06:11:50'),(146,81,'pt','garoto usuki','2013-01-27 06:11:50','2013-01-27 06:11:50'),(147,93,'pt','gas metano','2013-01-27 06:11:50','2013-01-27 06:11:50'),(148,40,'pt','gelatina','2013-01-27 06:11:50','2013-01-27 06:11:50'),(149,37,'pt','gelo','2013-01-27 06:11:50','2013-01-27 06:11:50'),(150,32,'pt','groselha','2013-01-27 06:11:50','2013-01-27 06:11:50'),(151,36,'pt','halloween','2013-01-27 06:11:50','2013-01-27 06:11:50'),(152,98,'pt','idosa ','2013-01-27 06:11:50','2013-01-27 06:11:50'),(153,97,'pt','idoso ','2013-01-27 06:11:50','2013-01-27 06:11:50'),(154,39,'pt','ilha','2013-01-27 06:11:50','2013-01-27 06:11:50'),(155,38,'pt','invisĂ­vel','2013-01-27 06:11:50','2013-01-27 06:11:50'),(156,47,'pt','laranja','2013-01-27 06:11:50','2013-01-27 06:11:50'),(157,41,'pt','limĂŁo','2013-01-27 06:11:50','2013-01-27 06:11:50'),(158,42,'pt','lima','2013-01-27 06:11:50','2013-01-27 06:11:50'),(159,77,'pt','listrado','2013-01-27 06:11:50','2013-01-27 06:11:50'),(160,2,'pt','maçã','2013-01-27 06:11:51','2013-01-27 06:11:51'),(161,87,'pt','magma','2013-01-27 06:11:51','2013-01-27 06:11:51'),(162,71,'pt','manchado','2013-01-27 06:11:51','2013-01-27 06:11:51'),(163,91,'pt','maractita','2013-01-27 06:11:51','2013-01-27 06:11:51'),(164,44,'pt','maraquano','2013-01-27 06:11:51','2013-01-27 06:11:51'),(165,10,'pt','marrom','2013-01-27 06:11:51','2013-01-27 06:11:51'),(166,43,'pt','marshmallow','2013-01-27 06:11:51','2013-01-27 06:11:51'),(167,69,'pt','meleca','2013-01-27 06:11:51','2013-01-27 06:11:51'),(168,9,'pt','mirtilo','2013-01-27 06:11:51','2013-01-27 06:11:51'),(169,76,'pt','morango','2013-01-27 06:11:51','2013-01-27 06:11:51'),(170,45,'pt','msp','2013-01-27 06:11:51','2013-01-27 06:11:51'),(171,46,'pt','mutante','2013-01-27 06:11:51','2013-01-27 06:11:51'),(172,16,'pt','natal','2013-01-27 06:11:51','2013-01-27 06:11:51'),(173,70,'pt','neve','2013-01-27 06:11:51','2013-01-27 06:11:51'),(174,18,'pt','nuvem','2013-01-27 06:11:51','2013-01-27 06:11:51'),(175,50,'pt','pĂȘra','2013-01-27 06:11:51','2013-01-27 06:11:51'),(176,49,'pt','pĂȘssego','2013-01-27 06:11:51','2013-01-27 06:11:51'),(177,56,'pt','pelĂșcia','2013-01-27 06:11:51','2013-01-27 06:11:51'),(178,51,'pt','pimenta','2013-01-27 06:11:51','2013-01-27 06:11:51'),(179,74,'pt','pintado','2013-01-27 06:11:51','2013-01-27 06:11:51'),(180,54,'pt','pirata','2013-01-27 06:11:51','2013-01-27 06:11:51'),(181,66,'pt','prata','2013-01-27 06:11:51','2013-01-27 06:11:51'),(182,59,'pt','quiguki fĂȘmea','2013-01-27 06:11:51','2013-01-27 06:11:51'),(183,58,'pt','quiguki macho','2013-01-27 06:11:51','2013-01-27 06:11:51'),(184,67,'pt','rascunho','2013-01-27 06:11:51','2013-01-27 06:11:51'),(185,64,'pt','real fĂȘmea','2013-01-27 06:11:51','2013-01-27 06:11:51'),(186,63,'pt','real macho','2013-01-27 06:11:51','2013-01-27 06:11:51'),(187,88,'pt','relĂ­quia','2013-01-27 06:11:51','2013-01-27 06:11:51'),(188,62,'pt','robĂŽ','2013-01-27 06:11:51','2013-01-27 06:11:51'),(189,53,'pt','rosa','2013-01-27 06:11:51','2013-01-27 06:11:51'),(190,57,'pt','roxo','2013-01-27 06:11:51','2013-01-27 06:11:51'),(191,99,'pt','sigiloso','2013-01-27 06:11:51','2013-01-27 06:11:51'),(192,65,'pt','sombra','2013-01-27 06:11:51','2013-01-27 06:11:51'),(193,79,'pt','tomate','2013-01-27 06:11:51','2013-01-27 06:11:51'),(194,90,'pt','transparente','2013-01-27 06:11:51','2013-01-27 06:11:51'),(195,80,'pt','tyranniano','2013-01-27 06:11:51','2013-01-27 06:11:51'),(196,33,'pt','uva','2013-01-27 06:11:51','2013-01-27 06:11:51'),(197,34,'pt','verde','2013-01-27 06:11:51','2013-01-27 06:11:51'),(198,61,'pt','vermelho','2013-01-27 06:11:51','2013-01-27 06:11:51'),(199,13,'pt','xadrez','2013-01-27 06:11:51','2013-01-27 06:11:51'),(200,85,'pt','zumbi','2013-01-27 06:11:51','2013-01-27 06:11:51'),(201,92,'en-MEEP','8-bit','2013-01-28 02:46:52','2013-01-28 02:46:52'),(202,1,'en-MEEP','alien','2013-01-28 02:46:52','2013-01-28 02:46:52'),(203,2,'en-MEEP','apple','2013-01-28 02:46:52','2013-01-28 02:46:52'),(204,3,'en-MEEP','asparagus','2013-01-28 02:46:52','2013-01-28 02:46:52'),(205,4,'en-MEEP','aubergine','2013-01-28 02:46:52','2013-01-28 02:46:52'),(206,5,'en-MEEP','avocado','2013-01-28 02:46:52','2013-01-28 02:46:52'),(207,6,'en-MEEP','baby','2013-01-28 02:46:52','2013-01-28 02:46:52'),(208,7,'en-MEEP','biscuit','2013-01-28 02:46:52','2013-01-28 02:46:52'),(209,8,'en-MEEP','blue','2013-01-28 02:46:52','2013-01-28 02:46:52'),(210,9,'en-MEEP','blueberry','2013-01-28 02:46:52','2013-01-28 02:46:52'),(211,10,'en-MEEP','brown','2013-01-28 02:46:52','2013-01-28 02:46:52'),(212,11,'en-MEEP','camouflage','2013-01-28 02:46:52','2013-01-28 02:46:52'),(213,12,'en-MEEP','carrot','2013-01-28 02:46:52','2013-01-28 02:46:52'),(214,13,'en-MEEP','checkered','2013-01-28 02:46:52','2013-01-28 02:46:52'),(215,14,'en-MEEP','chocolate','2013-01-28 02:46:52','2013-01-28 02:46:52'),(216,15,'en-MEEP','chokato','2013-01-28 02:46:52','2013-01-28 02:46:52'),(217,16,'en-MEEP','christmas','2013-01-28 02:46:52','2013-01-28 02:46:52'),(218,17,'en-MEEP','clay','2013-01-28 02:46:52','2013-01-28 02:46:52'),(219,18,'en-MEEP','cloud','2013-01-28 02:46:52','2013-01-28 02:46:52'),(220,19,'en-MEEP','coconut','2013-01-28 02:46:52','2013-01-28 02:46:52'),(221,20,'en-MEEP','custard','2013-01-28 02:46:52','2013-01-28 02:46:52'),(222,21,'en-MEEP','darigan','2013-01-28 02:46:52','2013-01-28 02:46:52'),(223,22,'en-MEEP','desert','2013-01-28 02:46:52','2013-01-28 02:46:53'),(224,100,'en-MEEP','dimensional','2013-01-28 02:46:53','2013-01-28 02:46:53'),(225,23,'en-MEEP','disco','2013-01-28 02:46:53','2013-01-28 02:46:53'),(226,24,'en-MEEP','durian','2013-01-28 02:46:53','2013-01-28 02:46:53'),(227,97,'en-MEEP','elderlyboy','2013-01-28 02:46:53','2013-01-28 02:46:53'),(228,98,'en-MEEP','elderlygirl','2013-01-28 02:46:53','2013-01-28 02:46:53'),(229,25,'en-MEEP','electric','2013-01-28 02:46:53','2013-01-28 02:46:53'),(230,96,'en-MEEP','eventide','2013-01-28 02:46:53','2013-01-28 02:46:53'),(231,26,'en-MEEP','faerie','2013-01-28 02:46:53','2013-01-28 02:46:53'),(232,27,'en-MEEP','fire','2013-01-28 02:46:53','2013-01-28 02:46:53'),(233,28,'en-MEEP','garlic','2013-01-28 02:46:53','2013-01-28 02:46:53'),(234,29,'en-MEEP','ghost','2013-01-28 02:46:53','2013-01-28 02:46:53'),(235,30,'en-MEEP','glowing','2013-01-28 02:46:53','2013-01-28 02:46:53'),(236,31,'en-MEEP','gold','2013-01-28 02:46:53','2013-01-28 02:46:53'),(237,32,'en-MEEP','gooseberry','2013-01-28 02:46:53','2013-01-28 02:46:53'),(238,33,'en-MEEP','grape','2013-01-28 02:46:53','2013-01-28 02:46:53'),(239,34,'en-MEEP','green','2013-01-28 02:46:53','2013-01-28 02:46:53'),(240,35,'en-MEEP','grey','2013-01-28 02:46:53','2013-01-28 02:46:53'),(241,36,'en-MEEP','halloween','2013-01-28 02:46:53','2013-01-28 02:46:53'),(242,37,'en-MEEP','ice','2013-01-28 02:46:53','2013-01-28 02:46:53'),(243,38,'en-MEEP','invisible','2013-01-28 02:46:53','2013-01-28 02:46:53'),(244,39,'en-MEEP','island','2013-01-28 02:46:53','2013-01-28 02:46:53'),(245,40,'en-MEEP','jelly','2013-01-28 02:46:53','2013-01-28 02:46:53'),(246,41,'en-MEEP','lemon','2013-01-28 02:46:53','2013-01-28 02:46:53'),(247,42,'en-MEEP','lime','2013-01-28 02:46:53','2013-01-28 02:46:53'),(248,87,'en-MEEP','magma','2013-01-28 02:46:53','2013-01-28 02:46:53'),(249,43,'en-MEEP','mallow','2013-01-28 02:46:53','2013-01-28 02:46:53'),(250,91,'en-MEEP','maractite','2013-01-28 02:46:53','2013-01-28 02:46:53'),(251,44,'en-MEEP','maraquan','2013-01-28 02:46:53','2013-01-28 02:46:53'),(252,45,'en-MEEP','msp','2013-01-28 02:46:53','2013-01-28 02:46:53'),(253,46,'en-MEEP','mutant','2013-01-28 02:46:53','2013-01-28 02:46:53'),(254,86,'en-MEEP','onion','2013-01-28 02:46:53','2013-01-28 02:46:53'),(255,47,'en-MEEP','orange','2013-01-28 02:46:53','2013-01-28 02:46:53'),(256,48,'en-MEEP','pea','2013-01-28 02:46:53','2013-01-28 02:46:53'),(257,49,'en-MEEP','peach','2013-01-28 02:46:53','2013-01-28 02:46:53'),(258,50,'en-MEEP','pear','2013-01-28 02:46:53','2013-01-28 02:46:53'),(259,51,'en-MEEP','pepper','2013-01-28 02:46:53','2013-01-28 02:46:53'),(260,52,'en-MEEP','pineapple','2013-01-28 02:46:53','2013-01-28 02:46:53'),(261,53,'en-MEEP','pink','2013-01-28 02:46:53','2013-01-28 02:46:53'),(262,54,'en-MEEP','pirate','2013-01-28 02:46:53','2013-01-28 02:46:53'),(263,55,'en-MEEP','plum','2013-01-28 02:46:53','2013-01-28 02:46:53'),(264,56,'en-MEEP','plushie','2013-01-28 02:46:53','2013-01-28 02:46:53'),(265,57,'en-MEEP','purple','2013-01-28 02:46:53','2013-01-28 02:46:53'),(266,58,'en-MEEP','quigukiboy','2013-01-28 02:46:53','2013-01-28 02:46:53'),(267,59,'en-MEEP','quigukigirl','2013-01-28 02:46:53','2013-01-28 02:46:53'),(268,60,'en-MEEP','rainbow','2013-01-28 02:46:53','2013-01-28 02:46:53'),(269,61,'en-MEEP','red','2013-01-28 02:46:53','2013-01-28 02:46:53'),(270,88,'en-MEEP','relic','2013-01-28 02:46:53','2013-01-28 02:46:53'),(271,62,'en-MEEP','robot','2013-01-28 02:46:53','2013-01-28 02:46:53'),(272,63,'en-MEEP','royalboy','2013-01-28 02:46:53','2013-01-28 02:46:53'),(273,64,'en-MEEP','royalgirl','2013-01-28 02:46:53','2013-01-28 02:46:53'),(274,65,'en-MEEP','shadow','2013-01-28 02:46:53','2013-01-28 02:46:53'),(275,66,'en-MEEP','silver','2013-01-28 02:46:53','2013-01-28 02:46:53'),(276,67,'en-MEEP','sketch','2013-01-28 02:46:53','2013-01-28 02:46:53'),(277,68,'en-MEEP','skunk','2013-01-28 02:46:53','2013-01-28 02:46:53'),(278,69,'en-MEEP','snot','2013-01-28 02:46:53','2013-01-28 02:46:53'),(279,70,'en-MEEP','snow','2013-01-28 02:46:53','2013-01-28 02:46:53'),(280,71,'en-MEEP','speckled','2013-01-28 02:46:53','2013-01-28 02:46:53'),(281,72,'en-MEEP','split','2013-01-28 02:46:53','2013-01-28 02:46:53'),(282,73,'en-MEEP','sponge','2013-01-28 02:46:53','2013-01-28 02:46:53'),(283,74,'en-MEEP','spotted','2013-01-28 02:46:53','2013-01-28 02:46:53'),(284,75,'en-MEEP','starry','2013-01-28 02:46:53','2013-01-28 02:46:53'),(285,99,'en-MEEP','stealthy','2013-01-28 02:46:53','2013-01-28 02:46:53'),(286,76,'en-MEEP','strawberry','2013-01-28 02:46:53','2013-01-28 02:46:53'),(287,77,'en-MEEP','striped','2013-01-28 02:46:53','2013-01-28 02:46:53'),(288,93,'en-MEEP','swamp gas','2013-01-28 02:46:53','2013-01-28 02:46:53'),(289,78,'en-MEEP','thornberry','2013-01-28 02:46:53','2013-01-28 02:46:53'),(290,79,'en-MEEP','tomato','2013-01-28 02:46:53','2013-01-28 02:46:53'),(291,90,'en-MEEP','transparent','2013-01-28 02:46:53','2013-01-28 02:46:53'),(292,80,'en-MEEP','tyrannian','2013-01-28 02:46:53','2013-01-28 02:46:53'),(293,81,'en-MEEP','usuki boy','2013-01-28 02:46:53','2013-01-28 02:46:53'),(294,82,'en-MEEP','usuki girl','2013-01-28 02:46:53','2013-01-28 02:46:53'),(295,94,'en-MEEP','water','2013-01-28 02:46:53','2013-01-28 02:46:53'),(296,83,'en-MEEP','white','2013-01-28 02:46:53','2013-01-28 02:46:53'),(297,89,'en-MEEP','woodland','2013-01-28 02:46:53','2013-01-28 02:46:53'),(298,95,'en-MEEP','wraith','2013-01-28 02:46:53','2013-01-28 02:46:53'),(299,84,'en-MEEP','yellow','2013-01-28 02:46:53','2013-01-28 02:46:53'),(300,85,'en-MEEP','zombie','2013-01-28 02:46:53','2013-01-28 02:46:53'),(301,92,'es','8-bits','2013-02-12 05:33:20','2013-02-12 05:33:20'),(302,13,'es','a cuadros','2013-02-12 05:33:20','2013-02-12 05:33:20'),(303,94,'es','agua','2013-02-12 05:33:20','2013-02-12 05:33:20'),(304,5,'es','aguacate','2013-02-12 05:33:20','2013-02-12 05:33:20'),(305,28,'es','ajo','2013-02-12 05:33:20','2013-02-12 05:33:20'),(306,1,'es','alienĂ­gena','2013-02-12 05:33:20','2013-02-12 05:33:20'),(307,84,'es','amarillo','2013-02-12 05:33:20','2013-02-12 05:33:20'),(308,98,'es','anciana','2013-02-12 05:33:20','2013-02-12 05:33:20'),(309,97,'es','anciano','2013-02-12 05:33:20','2013-02-12 05:33:20'),(310,96,'es','anochecer','2013-02-12 05:33:20','2013-02-12 05:33:20'),(311,77,'es','a rayas','2013-02-12 05:33:20','2013-02-12 05:33:20'),(312,17,'es','arcilla ','2013-02-12 05:33:20','2013-02-12 05:33:20'),(313,60,'es','arco iris','2013-02-12 05:33:20','2013-02-12 05:33:20'),(314,8,'es','azul','2013-02-12 05:33:20','2013-02-12 05:33:20'),(315,25,'es','azul elĂ©ctrico','2013-02-12 05:33:20','2013-02-12 05:33:20'),(316,6,'es','bebĂ©','2013-02-12 05:33:20','2013-02-12 05:33:20'),(317,4,'es','berenjena','2013-02-12 05:33:20','2013-02-12 05:33:20'),(318,83,'es','blanco','2013-02-12 05:33:21','2013-02-12 05:33:21'),(319,89,'es','bosque','2013-02-12 05:33:21','2013-02-12 05:33:21'),(320,11,'es','camuflaje','2013-02-12 05:33:21','2013-02-12 05:33:21'),(321,86,'es','cebolla','2013-02-12 05:33:21','2013-02-12 05:33:21'),(322,14,'es','chocolate','2013-02-12 05:33:21','2013-02-12 05:33:21'),(323,15,'es','chokato','2013-02-12 05:33:21','2013-02-12 05:33:21'),(324,55,'es','ciruela','2013-02-12 05:33:21','2013-02-12 05:33:21'),(325,19,'es','coco','2013-02-12 05:33:21','2013-02-12 05:33:21'),(326,71,'es','con manchas','2013-02-12 05:33:21','2013-02-12 05:33:21'),(327,74,'es','con motas','2013-02-12 05:33:21','2013-02-12 05:33:21'),(328,21,'es','darigan','2013-02-12 05:33:21','2013-02-12 05:33:21'),(329,22,'es','desierto','2013-02-12 05:33:21','2013-02-12 05:33:21'),(330,67,'es','dibujo','2013-02-12 05:33:21','2013-02-12 05:33:21'),(331,100,'es','dimensional','2013-02-12 05:33:21','2013-02-12 05:33:21'),(332,23,'es','disco','2013-02-12 05:33:21','2013-02-12 05:33:21'),(333,72,'es','dividido','2013-02-12 05:33:21','2013-02-12 05:33:21'),(334,31,'es','dorado','2013-02-12 05:33:21','2013-02-12 05:33:21'),(335,24,'es','durian','2013-02-12 05:33:21','2013-02-12 05:33:21'),(336,3,'es','espĂĄrrago','2013-02-12 05:33:21','2013-02-12 05:33:21'),(337,95,'es','espĂ­ritu','2013-02-12 05:33:21','2013-02-12 05:33:21'),(338,78,'es','espinabaya','2013-02-12 05:33:21','2013-02-12 05:33:21'),(339,73,'es','esponja','2013-02-12 05:33:21','2013-02-12 05:33:21'),(340,75,'es','estrellado','2013-02-12 05:33:21','2013-02-12 05:33:21'),(341,29,'es','fantasma','2013-02-12 05:33:21','2013-02-12 05:33:21'),(342,20,'es','flan','2013-02-12 05:33:21','2013-02-12 05:33:21'),(343,30,'es','fluorescente','2013-02-12 05:33:21','2013-02-12 05:33:21'),(344,76,'es','fresa','2013-02-12 05:33:21','2013-02-12 05:33:21'),(345,27,'es','fuego','2013-02-12 05:33:21','2013-02-12 05:33:21'),(346,7,'es','galleta','2013-02-12 05:33:21','2013-02-12 05:33:21'),(347,32,'es','gansobaya','2013-02-12 05:33:21','2013-02-12 05:33:21'),(348,40,'es','gelatina','2013-02-12 05:33:21','2013-02-12 05:33:21'),(349,35,'es','gris','2013-02-12 05:33:21','2013-02-12 05:33:21'),(350,48,'es','guisante','2013-02-12 05:33:21','2013-02-12 05:33:21'),(351,26,'es','hada','2013-02-12 05:33:21','2013-02-12 05:33:21'),(352,36,'es','halloween','2013-02-12 05:33:21','2013-02-12 05:33:21'),(353,37,'es','hielo','2013-02-12 05:33:21','2013-02-12 05:33:21'),(354,38,'es','invisible','2013-02-12 05:33:21','2013-02-12 05:33:21'),(355,39,'es','isla','2013-02-12 05:33:21','2013-02-12 05:33:21'),(356,41,'es','limĂłn','2013-02-12 05:33:21','2013-02-12 05:33:21'),(357,42,'es','limĂłn','2013-02-12 05:33:21','2013-02-12 05:33:21'),(358,87,'es','magma','2013-02-12 05:33:21','2013-02-12 05:33:21'),(359,2,'es','manzana','2013-02-12 05:33:21','2013-02-12 05:33:21'),(360,91,'es','maractita','2013-02-12 05:33:21','2013-02-12 05:33:21'),(361,44,'es','maracuĂĄtico','2013-02-12 05:33:21','2013-02-12 05:33:21'),(362,10,'es','marrĂłn','2013-02-12 05:33:21','2013-02-12 05:33:21'),(363,43,'es','marshmallow','2013-02-12 05:33:21','2013-02-12 05:33:21'),(364,49,'es','melocotĂłn','2013-02-12 05:33:21','2013-02-12 05:33:21'),(365,93,'es','metano','2013-02-12 05:33:21','2013-02-12 05:33:21'),(366,69,'es','moco','2013-02-12 05:33:21','2013-02-12 05:33:21'),(367,68,'es','mofeta','2013-02-12 05:33:21','2013-02-12 05:33:21'),(368,9,'es','mora azul','2013-02-12 05:33:21','2013-02-12 05:33:21'),(369,57,'es','morado','2013-02-12 05:33:21','2013-02-12 05:33:21'),(370,45,'es','msp','2013-02-12 05:33:21','2013-02-12 05:33:21'),(371,46,'es','mutante','2013-02-12 05:33:21','2013-02-12 05:33:21'),(372,47,'es','naranja','2013-02-12 05:33:21','2013-02-12 05:33:21'),(373,16,'es','navidad','2013-02-12 05:33:21','2013-02-12 05:33:21'),(374,64,'es','niña de la realeza','2013-02-12 05:33:21','2013-02-12 05:33:21'),(375,63,'es','niño de la realeza','2013-02-12 05:33:22','2013-02-12 05:33:22'),(376,70,'es','nieve','2013-02-12 05:33:22','2013-02-12 05:33:22'),(377,18,'es','nube','2013-02-12 05:33:22','2013-02-12 05:33:22'),(378,56,'es','peluche','2013-02-12 05:33:22','2013-02-12 05:33:22'),(379,50,'es','pera','2013-02-12 05:33:22','2013-02-12 05:33:22'),(380,52,'es','piña','2013-02-12 05:33:22','2013-02-12 05:33:22'),(381,51,'es','pimiento','2013-02-12 05:33:22','2013-02-12 05:33:22'),(382,54,'es','pirata','2013-02-12 05:33:22','2013-02-12 05:33:22'),(383,66,'es','plateado','2013-02-12 05:33:22','2013-02-12 05:33:22'),(384,59,'es','quiguki niña','2013-02-12 05:33:22','2013-02-12 05:33:22'),(385,58,'es','quiguki niño','2013-02-12 05:33:22','2013-02-12 05:33:22'),(386,88,'es','reliquia','2013-02-12 05:33:22','2013-02-12 05:33:22'),(387,62,'es','robot','2013-02-12 05:33:22','2013-02-12 05:33:22'),(388,61,'es','rojo','2013-02-12 05:33:22','2013-02-12 05:33:22'),(389,53,'es','rosa','2013-02-12 05:33:22','2013-02-12 05:33:22'),(390,99,'es','sigiloso','2013-02-12 05:33:22','2013-02-12 05:33:22'),(391,65,'es','sombra','2013-02-12 05:33:22','2013-02-12 05:33:22'),(392,79,'es','tomate','2013-02-12 05:33:22','2013-02-12 05:33:22'),(393,90,'es','transparente','2013-02-12 05:33:22','2013-02-12 05:33:22'),(394,80,'es','tyranniano','2013-02-12 05:33:22','2013-02-12 05:33:22'),(395,82,'es','usuki niña','2013-02-12 05:33:22','2013-02-12 05:33:22'),(396,81,'es','usuki niño','2013-02-12 05:33:22','2013-02-12 05:33:22'),(397,33,'es','uva','2013-02-12 05:33:22','2013-02-12 05:33:22'),(398,34,'es','verde','2013-02-12 05:33:22','2013-02-12 05:33:22'),(399,12,'es','zanahoria ','2013-02-12 05:33:22','2013-02-12 05:33:22'),(400,85,'es','zombi','2013-02-12 05:33:22','2013-02-12 05:33:22'),(401,101,'en','agueena','2013-02-16 06:01:08','2013-12-21 01:15:19'),(402,101,'pt','Agueena','2013-02-16 06:03:06','2013-02-16 06:03:06'),(403,101,'es','AgĂŒina','2013-02-16 06:03:06','2013-02-16 06:03:06'),(404,102,'en','pastel','2013-12-21 01:19:37','2014-11-15 01:52:51'),(405,-1,'en','nebula','2014-04-01 03:18:20','2014-04-01 03:18:20'),(406,103,'en','ummagine','2014-10-03 21:54:58','2014-11-15 01:54:18'),(407,-1,'pt','nebula','2014-11-15 01:50:34','2014-11-15 01:50:34'),(408,-1,'es','nebula','2014-11-15 01:50:34','2014-11-15 01:50:34'),(409,-1,'en-MEEP','nebula','2014-11-15 01:50:34','2014-11-15 01:50:34'),(410,101,'en-MEEP','agueena','2014-11-15 01:51:08','2014-11-15 01:51:08'),(411,102,'en-MEEP','pastel','2014-11-15 01:52:51','2014-11-15 01:52:51'),(412,102,'pt','pastel','2014-11-15 01:52:51','2014-11-15 01:52:51'),(413,102,'es','pastel','2014-11-15 01:52:51','2014-11-15 01:52:51'),(414,103,'es','rarajena','2014-11-15 01:54:18','2014-11-15 01:54:18'),(415,103,'pt','ummagina','2014-11-15 01:54:18','2014-11-15 01:54:18'),(416,103,'en-MEEP','ummagine','2014-11-15 01:54:18','2014-11-15 01:54:18'),(417,104,'en','Polka Dot','2015-02-12 02:29:50','2015-02-12 02:29:50'),(418,104,'en-MEEP','Polka Dot','2015-02-12 02:31:47','2015-02-12 02:31:47'),(419,104,'pt','Polka Dot','2015-02-12 02:31:47','2015-02-12 02:31:47'),(420,104,'es','Polka Dot','2015-02-12 02:31:47','2015-02-12 02:31:47'),(421,105,'en','Candy','2017-02-23 19:19:07','2017-02-23 19:19:07'),(422,106,'en','marble','2017-02-23 19:29:00','2017-02-23 19:29:00'),(423,107,'en','Steampunk','2018-01-27 23:54:10','2018-01-27 23:54:10'),(424,108,'en','Toy','2018-02-14 22:40:32','2018-02-14 22:40:32'),(425,109,'en','Origami','2018-03-07 04:53:11','2018-03-07 04:53:11'),(426,110,'en','Oil Paint','2019-03-07 03:15:31','2019-03-07 03:20:36'),(427,111,'en','Mosaic','2019-04-29 18:04:39','2019-04-29 18:04:39'),(428,112,'en','Burlap','2019-04-29 18:06:47','2019-04-29 18:06:47'),(429,114,'en','Juppie Swirl',NULL,NULL),(430,115,'en','Valentine','2023-02-15 04:58:23','2023-02-15 04:58:23'),(431,116,'en','Sroom',NULL,NULL),(432,117,'en','potato','2023-07-31 21:48:32','2023-07-31 21:48:32'); -/*!40000 ALTER TABLE `color_translations` ENABLE KEYS */; -UNLOCK TABLES; - -- -- Table structure for table `zones` -- @@ -152,37 +92,6 @@ LOCK TABLES `zones` WRITE; INSERT INTO `zones` VALUES (1,1,4,'Music','music'),(2,2,4,'Sound Effects','soundeffects'),(3,3,3,'Background','background'),(4,6,1,'Biology Effects','biologyeffects'),(5,7,1,'Hind Biology','hindbiology'),(6,8,2,'Markings','markings'),(7,9,1,'Hind Disease','hinddisease'),(8,10,2,'Hind Cover','hindcover'),(9,11,1,'Hind Transient Biology','hindtransientbiology'),(10,12,1,'Hind Drippings','hinddrippings'),(11,13,2,'Backpack','backpack'),(12,14,1,'Wings Transient Biology','wingstransientbiology'),(13,15,2,'Wings','wings'),(14,17,1,'Hair Back','hairback'),(15,18,1,'Body','body'),(16,19,2,'Markings','markings'),(17,20,1,'Body Disease','bodydisease'),(18,21,1,'Feet Transient Biology','feettransientbiology'),(19,22,2,'Shoes','shoes'),(20,23,1,'Lower-body Transient Biology','lowerbodytransientbiology'),(21,24,2,'Trousers','trousers'),(22,25,1,'Upper-body Transient Biology','upperbodytransientbiology'),(23,26,2,'Shirt/Dress','shirtdress'),(24,28,2,'Necklace','necklace'),(25,29,2,'Gloves','gloves'),(26,30,2,'Jacket','jacket'),(27,31,2,'Collar','collar'),(28,32,1,'Body Drippings','bodydrippings'),(29,33,1,'Ruff','ruff'),(30,34,1,'Head','head'),(31,35,2,'Markings','markings'),(32,36,1,'Head Disease','headdisease'),(33,37,1,'Eyes','eyes'),(34,38,1,'Mouth','mouth'),(35,41,2,'Glasses','glasses'),(36,39,2,'Earrings','earrings'),(37,40,1,'Hair Front','hairfront'),(38,42,1,'Head Transient Biology','headtransientbiology'),(39,43,1,'Head Drippings','headdrippings'),(40,44,2,'Hat','hat'),(41,45,2,'Earrings','earrings'),(42,46,2,'Right-hand Item','righthanditem'),(43,47,2,'Left-hand Item','lefthanditem'),(44,49,3,'Higher Foreground Item','higherforegrounditem'),(45,50,3,'Lower Foreground Item','lowerforegrounditem'),(46,48,2,'Static','static'),(47,51,3,'Thought Bubble','thoughtbubble'),(48,4,3,'Background Item','backgrounditem'),(49,5,2,'Right-hand Item','righthanditem'),(50,16,2,'Hat','hat'),(51,27,2,'Belt','belt'),(52,52,3,'Foreground','foreground'); /*!40000 ALTER TABLE `zones` ENABLE KEYS */; UNLOCK TABLES; - --- --- Table structure for table `zone_translations` --- - -DROP TABLE IF EXISTS `zone_translations`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `zone_translations` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `zone_id` int(11) DEFAULT NULL, - `locale` varchar(255) DEFAULT NULL, - `label` varchar(255) DEFAULT NULL, - `plain_label` varchar(255) DEFAULT NULL, - `created_at` datetime DEFAULT NULL, - `updated_at` datetime DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `index_zone_translations_on_zone_id` (`zone_id`), - KEY `index_zone_translations_on_locale` (`locale`) -) ENGINE=InnoDB AUTO_INCREMENT=209 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `zone_translations` --- - -LOCK TABLES `zone_translations` WRITE; -/*!40000 ALTER TABLE `zone_translations` DISABLE KEYS */; -INSERT INTO `zone_translations` VALUES (1,1,'en','Music','music','2013-01-27 06:10:45','2013-01-27 06:10:45'),(2,2,'en','Sound Effects','soundeffects','2013-01-27 06:10:45','2013-01-27 06:10:45'),(3,3,'en','Background','background','2013-01-27 06:10:45','2013-01-27 06:10:45'),(4,4,'en','Biology Effects','biologyeffects','2013-01-27 06:10:45','2013-01-27 06:10:45'),(5,5,'en','Hind Biology','hindbiology','2013-01-27 06:10:45','2013-01-27 06:10:45'),(6,6,'en','Markings','markings','2013-01-27 06:10:45','2013-01-27 06:10:45'),(7,7,'en','Hind Disease','hinddisease','2013-01-27 06:10:45','2013-01-27 06:10:45'),(8,8,'en','Hind Cover','hindcover','2013-01-27 06:10:45','2013-01-27 06:10:45'),(9,9,'en','Hind Transient Biology','hindtransientbiology','2013-01-27 06:10:45','2013-01-27 06:10:45'),(10,10,'en','Hind Drippings','hinddrippings','2013-01-27 06:10:45','2013-01-27 06:10:45'),(11,11,'en','Backpack','backpack','2013-01-27 06:10:45','2013-01-27 06:10:45'),(12,12,'en','Wings Transient Biology','wingstransientbiology','2013-01-27 06:10:45','2013-01-27 06:10:45'),(13,13,'en','Wings','wings','2013-01-27 06:10:45','2013-01-27 06:10:45'),(14,14,'en','Hair Back','hairback','2013-01-27 06:10:45','2013-01-27 06:10:45'),(15,15,'en','Body','body','2013-01-27 06:10:45','2013-01-27 06:10:45'),(16,16,'en','Markings','markings','2013-01-27 06:10:45','2013-01-27 06:10:45'),(17,17,'en','Body Disease','bodydisease','2013-01-27 06:10:45','2013-01-27 06:10:45'),(18,18,'en','Feet Transient Biology','feettransientbiology','2013-01-27 06:10:45','2013-01-27 06:10:45'),(19,19,'en','Shoes','shoes','2013-01-27 06:10:45','2013-01-27 06:10:45'),(20,20,'en','Lower-body Transient Biology','lowerbodytransientbiology','2013-01-27 06:10:45','2013-01-27 06:10:45'),(21,21,'en','Trousers','trousers','2013-01-27 06:10:45','2013-01-27 06:10:45'),(22,22,'en','Upper-body Transient Biology','upperbodytransientbiology','2013-01-27 06:10:45','2013-01-27 06:10:45'),(23,23,'en','Shirt/Dress','shirtdress','2013-01-27 06:10:45','2013-01-27 06:10:45'),(24,24,'en','Necklace','necklace','2013-01-27 06:10:45','2013-01-27 06:10:45'),(25,25,'en','Gloves','gloves','2013-01-27 06:10:45','2013-01-27 06:10:45'),(26,26,'en','Jacket','jacket','2013-01-27 06:10:45','2013-01-27 06:10:45'),(27,27,'en','Collar','collar','2013-01-27 06:10:45','2013-01-27 06:10:45'),(28,28,'en','Body Drippings','bodydrippings','2013-01-27 06:10:45','2013-01-27 06:10:45'),(29,29,'en','Ruff','ruff','2013-01-27 06:10:45','2013-01-27 06:10:45'),(30,30,'en','Head','head','2013-01-27 06:10:45','2013-01-27 06:10:45'),(31,31,'en','Markings','markings','2013-01-27 06:10:45','2013-01-27 06:10:45'),(32,32,'en','Head Disease','headdisease','2013-01-27 06:10:45','2013-01-27 06:10:45'),(33,33,'en','Eyes','eyes','2013-01-27 06:10:45','2013-01-27 06:10:45'),(34,34,'en','Mouth','mouth','2013-01-27 06:10:45','2013-01-27 06:10:45'),(35,35,'en','Glasses','glasses','2013-01-27 06:10:45','2013-01-27 06:10:45'),(36,36,'en','Earrings','earrings','2013-01-27 06:10:45','2013-01-27 06:10:45'),(37,37,'en','Hair Front','hairfront','2013-01-27 06:10:45','2013-01-27 06:10:45'),(38,38,'en','Head Transient Biology','headtransientbiology','2013-01-27 06:10:45','2013-01-27 06:10:45'),(39,39,'en','Head Drippings','headdrippings','2013-01-27 06:10:45','2013-01-27 06:10:45'),(40,40,'en','Hat','hat','2013-01-27 06:10:45','2013-01-27 06:10:45'),(41,41,'en','Earrings','earrings','2013-01-27 06:10:45','2013-01-27 06:10:45'),(42,42,'en','Right-hand Item','righthanditem','2013-01-27 06:10:45','2014-04-06 04:25:35'),(43,43,'en','Left-hand Item','lefthanditem','2013-01-27 06:10:45','2014-04-06 04:25:35'),(44,44,'en','Higher Foreground Item','higherforegrounditem','2013-01-27 06:10:45','2014-04-06 04:25:35'),(45,45,'en','Lower Foreground Item','lowerforegrounditem','2013-01-27 06:10:45','2014-04-06 04:25:35'),(46,46,'en','Static','static','2013-01-27 06:10:46','2013-01-27 06:10:46'),(47,47,'en','Thought Bubble','thoughtbubble','2013-01-27 06:10:46','2013-01-27 06:10:46'),(48,48,'en','Background Item','backgrounditem','2013-01-27 06:10:46','2014-04-06 04:25:35'),(49,49,'en','Right-hand Item','righthanditem','2013-01-27 06:10:46','2014-04-06 04:25:35'),(50,50,'en','Hat','hat','2013-01-27 06:10:46','2013-01-27 06:10:46'),(51,51,'en','Belt','belt','2013-01-27 06:10:46','2013-01-27 06:10:46'),(52,52,'en','Foreground','foreground','2013-01-27 06:10:46','2013-01-27 06:10:46'),(53,52,'pt','Frente','frente','2013-01-27 06:11:02','2013-01-27 06:11:02'),(54,47,'pt','BalĂŁo de Pensamento','balaodepensamento','2013-01-27 06:11:02','2013-01-27 06:11:02'),(55,45,'pt','Artigo Inferior Frontal','artigoinferiorfrontal','2013-01-27 06:11:02','2013-01-27 06:11:02'),(56,44,'pt','Artigo Superior Frontal','artigosuperiorfrontal','2013-01-27 06:11:02','2013-01-27 06:11:02'),(57,46,'pt','Static','static','2013-01-27 06:11:02','2013-01-27 06:11:02'),(58,43,'pt','MĂŁo Esquerda','maoesquerda','2013-01-27 06:11:02','2013-01-27 06:11:02'),(59,42,'pt','MĂŁo Direita','maodireita','2013-01-27 06:11:02','2013-01-27 06:11:02'),(60,41,'pt','Brincos','brincos','2013-01-27 06:11:02','2013-01-27 06:11:02'),(61,40,'pt','ChapĂ©us','chapeus','2013-01-27 06:11:02','2013-01-27 06:11:02'),(62,39,'pt','Head Drippings','headdrippings','2013-01-27 06:11:02','2013-01-27 06:11:02'),(63,38,'pt','Head Transient Biology','headtransientbiology','2013-01-27 06:11:02','2013-01-27 06:11:02'),(64,35,'pt','Olhos','olhos','2013-01-27 06:11:02','2013-01-27 06:11:02'),(65,37,'pt','PĂȘlo Frontal','pelofrontal','2013-01-27 06:11:02','2013-01-27 06:11:02'),(66,36,'pt','Brincos','brincos','2013-01-27 06:11:02','2013-01-27 06:11:02'),(67,34,'pt','Mouth','mouth','2013-01-27 06:11:02','2013-01-27 06:11:02'),(68,33,'pt','Eyes','eyes','2013-01-27 06:11:02','2013-01-27 06:11:02'),(69,32,'pt','Head Disease','headdisease','2013-01-27 06:11:02','2013-01-27 06:11:02'),(70,31,'pt','Marcas','marcas','2013-01-27 06:11:02','2013-01-27 06:11:02'),(71,30,'pt','Head','head','2013-01-27 06:11:02','2013-01-27 06:11:02'),(72,29,'pt','Ruff','ruff','2013-01-27 06:11:02','2013-01-27 06:11:02'),(73,28,'pt','Body Drippings','bodydrippings','2013-01-27 06:11:02','2013-01-27 06:11:02'),(74,27,'pt','Pescoço','pescoco','2013-01-27 06:11:02','2013-01-27 06:11:02'),(75,26,'pt','Casacos','casacos','2013-01-27 06:11:02','2013-01-27 06:11:02'),(76,25,'pt','Luvas','luvas','2013-01-27 06:11:02','2013-01-27 06:11:02'),(77,24,'pt','Colares','colares','2013-01-27 06:11:02','2013-01-27 06:11:02'),(78,51,'pt','Cinto','cinto','2013-01-27 06:11:02','2013-01-27 06:11:02'),(79,23,'pt','Camisa/Vestido','camisavestido','2013-01-27 06:11:02','2013-01-27 06:11:02'),(80,22,'pt','Upper-body Transient Biology','upperbodytransientbiology','2013-01-27 06:11:02','2013-01-27 06:11:02'),(81,21,'pt','Calças','calcas','2013-01-27 06:11:02','2013-01-27 06:11:02'),(82,20,'pt','Lower-body Transient Biology','lowerbodytransientbiology','2013-01-27 06:11:02','2013-01-27 06:11:02'),(83,19,'pt','Sapatos','sapatos','2013-01-27 06:11:02','2013-01-27 06:11:02'),(84,18,'pt','Feet Transient Biology','feettransientbiology','2013-01-27 06:11:02','2013-01-27 06:11:02'),(85,17,'pt','Body Disease','bodydisease','2013-01-27 06:11:02','2013-01-27 06:11:02'),(86,16,'pt','Marcas','marcas','2013-01-27 06:11:02','2013-01-27 06:11:02'),(87,15,'pt','Body','body','2013-01-27 06:11:02','2013-01-27 06:11:02'),(88,14,'pt','PĂȘlo Traseiro','pelotraseiro','2013-01-27 06:11:02','2013-01-27 06:11:02'),(89,50,'pt','ChapĂ©us','chapeus','2013-01-27 06:11:02','2013-01-27 06:11:02'),(90,13,'pt','Asas','asas','2013-01-27 06:11:02','2013-01-27 06:11:02'),(91,12,'pt','Wings Transient Biology','wingstransientbiology','2013-01-27 06:11:02','2013-01-27 06:11:02'),(92,11,'pt','Mochilas','mochilas','2013-01-27 06:11:02','2013-01-27 06:11:02'),(93,10,'pt','Hind Drippings','hinddrippings','2013-01-27 06:11:02','2013-01-27 06:11:02'),(94,9,'pt','Hind Transient Biology','hindtransientbiology','2013-01-27 06:11:02','2013-01-27 06:11:02'),(95,8,'pt','Adornos Traseiros','adornostraseiros','2013-01-27 06:11:02','2013-01-27 06:11:02'),(96,7,'pt','Hind Disease','hinddisease','2013-01-27 06:11:02','2013-01-27 06:11:02'),(97,6,'pt','Marcas','marcas','2013-01-27 06:11:02','2013-01-27 06:11:02'),(98,5,'pt','Hind Biology','hindbiology','2013-01-27 06:11:02','2013-01-27 06:11:02'),(99,4,'pt','Biology Effects','biologyeffects','2013-01-27 06:11:02','2013-01-27 06:11:02'),(100,49,'pt','MĂŁo Direita','maodireita','2013-01-27 06:11:02','2013-01-27 06:11:02'),(101,48,'pt','Artigos de Fundo','artigosdefundo','2013-01-27 06:11:02','2013-01-27 06:11:02'),(102,3,'pt','Fundos de Imagem','fundosdeimagem','2013-01-27 06:11:02','2013-01-27 06:11:02'),(103,2,'pt','Efeitos Sonoros','efeitossonoros','2013-01-27 06:11:02','2013-01-27 06:11:02'),(104,1,'pt','MĂșsicas','musicas','2013-01-27 06:11:02','2013-01-27 06:11:02'),(105,52,'en-MEEP','Foreground','foreground','2013-01-28 02:46:27','2013-01-28 02:46:27'),(106,47,'en-MEEP','Thought Bubble','thoughtbubble','2013-01-28 02:46:27','2013-01-28 02:46:27'),(107,45,'en-MEEP','Lower Foreground Item','lowerforegrounditem','2013-01-28 02:46:27','2013-01-28 02:46:27'),(108,44,'en-MEEP','Higher Foreground Item','higherforegrounditem','2013-01-28 02:46:27','2013-01-28 02:46:27'),(109,46,'en-MEEP','Static','static','2013-01-28 02:46:27','2013-01-28 02:46:27'),(110,43,'en-MEEP','Left-hand Item','lefthanditem','2013-01-28 02:46:27','2013-01-28 02:46:27'),(111,42,'en-MEEP','Right-hand Item','righthanditem','2013-01-28 02:46:27','2013-01-28 02:46:27'),(112,41,'en-MEEP','Earrings','earrings','2013-01-28 02:46:27','2013-01-28 02:46:27'),(113,40,'en-MEEP','Hat','hat','2013-01-28 02:46:27','2013-01-28 02:46:27'),(114,39,'en-MEEP','Head Drippings','headdrippings','2013-01-28 02:46:27','2013-01-28 02:46:27'),(115,38,'en-MEEP','Head Transient Biology','headtransientbiology','2013-01-28 02:46:27','2013-01-28 02:46:27'),(116,35,'en-MEEP','Glasses','glasses','2013-01-28 02:46:27','2013-01-28 02:46:27'),(117,37,'en-MEEP','Hair Front','hairfront','2013-01-28 02:46:27','2013-01-28 02:46:27'),(118,36,'en-MEEP','Earrings','earrings','2013-01-28 02:46:27','2013-01-28 02:46:27'),(119,34,'en-MEEP','Mouth','mouth','2013-01-28 02:46:27','2013-01-28 02:46:27'),(120,33,'en-MEEP','Eyes','eyes','2013-01-28 02:46:27','2013-01-28 02:46:27'),(121,32,'en-MEEP','Head Disease','headdisease','2013-01-28 02:46:27','2013-01-28 02:46:27'),(122,31,'en-MEEP','Markings','markings','2013-01-28 02:46:27','2013-01-28 02:46:27'),(123,30,'en-MEEP','Head','head','2013-01-28 02:46:27','2013-01-28 02:46:27'),(124,29,'en-MEEP','Ruff','ruff','2013-01-28 02:46:27','2013-01-28 02:46:27'),(125,28,'en-MEEP','Body Drippings','bodydrippings','2013-01-28 02:46:27','2013-01-28 02:46:27'),(126,27,'en-MEEP','Collar','collar','2013-01-28 02:46:27','2013-01-28 02:46:27'),(127,26,'en-MEEP','Jacket','jacket','2013-01-28 02:46:27','2013-01-28 02:46:27'),(128,25,'en-MEEP','Gloves','gloves','2013-01-28 02:46:27','2013-01-28 02:46:27'),(129,24,'en-MEEP','Necklace','necklace','2013-01-28 02:46:27','2013-01-28 02:46:27'),(130,51,'en-MEEP','Belt','belt','2013-01-28 02:46:27','2013-01-28 02:46:27'),(131,23,'en-MEEP','Shirt/Dress','shirtdress','2013-01-28 02:46:27','2013-01-28 02:46:27'),(132,22,'en-MEEP','Upper-body Transient Biology','upperbodytransientbiology','2013-01-28 02:46:27','2013-01-28 02:46:27'),(133,21,'en-MEEP','Trousers','trousers','2013-01-28 02:46:27','2013-01-28 02:46:27'),(134,20,'en-MEEP','Lower-body Transient Biology','lowerbodytransientbiology','2013-01-28 02:46:27','2013-01-28 02:46:27'),(135,19,'en-MEEP','Shoes','shoes','2013-01-28 02:46:27','2013-01-28 02:46:27'),(136,18,'en-MEEP','Feet Transient Biology','feettransientbiology','2013-01-28 02:46:28','2013-01-28 02:46:28'),(137,17,'en-MEEP','Body Disease','bodydisease','2013-01-28 02:46:28','2013-01-28 02:46:28'),(138,16,'en-MEEP','Markings','markings','2013-01-28 02:46:28','2013-01-28 02:46:28'),(139,15,'en-MEEP','Body','body','2013-01-28 02:46:28','2013-01-28 02:46:28'),(140,14,'en-MEEP','Hair Back','hairback','2013-01-28 02:46:28','2013-01-28 02:46:28'),(141,50,'en-MEEP','Hat','hat','2013-01-28 02:46:28','2013-01-28 02:46:28'),(142,13,'en-MEEP','Wings','wings','2013-01-28 02:46:28','2013-01-28 02:46:28'),(143,12,'en-MEEP','Wings Transient Biology','wingstransientbiology','2013-01-28 02:46:28','2013-01-28 02:46:28'),(144,11,'en-MEEP','Backpack','backpack','2013-01-28 02:46:28','2013-01-28 02:46:28'),(145,10,'en-MEEP','Hind Drippings','hinddrippings','2013-01-28 02:46:28','2013-01-28 02:46:28'),(146,9,'en-MEEP','Hind Transient Biology','hindtransientbiology','2013-01-28 02:46:28','2013-01-28 02:46:28'),(147,8,'en-MEEP','Hind Cover','hindcover','2013-01-28 02:46:28','2013-01-28 02:46:28'),(148,7,'en-MEEP','Hind Disease','hinddisease','2013-01-28 02:46:28','2013-01-28 02:46:28'),(149,6,'en-MEEP','Markings','markings','2013-01-28 02:46:28','2013-01-28 02:46:28'),(150,5,'en-MEEP','Hind Biology','hindbiology','2013-01-28 02:46:28','2013-01-28 02:46:28'),(151,4,'en-MEEP','Biology Effects','biologyeffects','2013-01-28 02:46:28','2013-01-28 02:46:28'),(152,49,'en-MEEP','Right-hand Item','righthanditem','2013-01-28 02:46:28','2013-01-28 02:46:28'),(153,48,'en-MEEP','Background Item','backgrounditem','2013-01-28 02:46:28','2013-01-28 02:46:28'),(154,3,'en-MEEP','Background','background','2013-01-28 02:46:28','2013-01-28 02:46:28'),(155,2,'en-MEEP','Sound Effects','soundeffects','2013-01-28 02:46:28','2013-01-28 02:46:28'),(156,1,'en-MEEP','Music','music','2013-01-28 02:46:28','2013-01-28 02:46:28'),(157,52,'es','Primer plano ','primerplano','2013-02-12 05:32:05','2013-02-12 05:32:05'),(158,47,'es','Burbujas de ideas','burbujasdeideas','2013-02-12 05:32:05','2013-02-12 05:32:05'),(159,45,'es','Objetos de primer plano bajo','objetosdeprimerplanobajo','2013-02-12 05:32:05','2013-02-12 05:32:05'),(160,44,'es','Objetos en primer plano alto ','objetosenprimerplanoalto','2013-02-12 05:32:05','2013-02-12 05:32:05'),(161,46,'es','Static','static','2013-02-12 05:32:05','2013-02-12 05:32:05'),(162,43,'es','Objetos para la mano izquierda','objetosparalamanoizquierda','2013-02-12 05:32:05','2013-02-12 05:32:05'),(163,42,'es','Objeto para la mano derecha','objetoparalamanoderecha','2013-02-12 05:32:05','2013-02-12 05:32:05'),(164,41,'es','Aretes','aretes','2013-02-12 05:32:05','2013-02-12 05:32:05'),(165,40,'es','Sombrero','sombrero','2013-02-12 05:32:05','2013-02-12 05:32:05'),(166,39,'es','Head Drippings','headdrippings','2013-02-12 05:32:05','2013-02-12 05:32:05'),(167,38,'es','Head Transient Biology','headtransientbiology','2013-02-12 05:32:05','2013-02-12 05:32:05'),(168,35,'es','Lentes','lentes','2013-02-12 05:32:05','2013-02-12 05:32:05'),(169,37,'es','Pelo de enfrente','pelodeenfrente','2013-02-12 05:32:05','2013-02-12 05:32:05'),(170,36,'es','Aretes','aretes','2013-02-12 05:32:05','2013-02-12 05:32:05'),(171,34,'es','Mouth','mouth','2013-02-12 05:32:05','2013-02-12 05:32:05'),(172,33,'es','Eyes','eyes','2013-02-12 05:32:05','2013-02-12 05:32:05'),(173,32,'es','Head Disease','headdisease','2013-02-12 05:32:05','2013-02-12 05:32:05'),(174,31,'es','Marcas','marcas','2013-02-12 05:32:05','2013-02-12 05:32:05'),(175,30,'es','Head','head','2013-02-12 05:32:05','2013-02-12 05:32:05'),(176,29,'es','Ruff','ruff','2013-02-12 05:32:05','2013-02-12 05:32:05'),(177,28,'es','Body Drippings','bodydrippings','2013-02-12 05:32:05','2013-02-12 05:32:05'),(178,27,'es','Cuello','cuello','2013-02-12 05:32:05','2013-02-12 05:32:05'),(179,26,'es','Saco','saco','2013-02-12 05:32:05','2013-02-12 05:32:05'),(180,25,'es','Guantes','guantes','2013-02-12 05:32:05','2013-02-12 05:32:05'),(181,24,'es','Collar','collar','2013-02-12 05:32:05','2013-02-12 05:32:05'),(182,51,'es','Cinturones','cinturones','2013-02-12 05:32:05','2013-02-12 05:32:05'),(183,23,'es','Camisetas/Vestidos','camisetasvestidos','2013-02-12 05:32:05','2013-02-12 05:32:05'),(184,22,'es','Upper-body Transient Biology','upperbodytransientbiology','2013-02-12 05:32:05','2013-02-12 05:32:05'),(185,21,'es','Pantalones/Faldas','pantalonesfaldas','2013-02-12 05:32:05','2013-02-12 05:32:05'),(186,20,'es','Lower-body Transient Biology','lowerbodytransientbiology','2013-02-12 05:32:06','2013-02-12 05:32:06'),(187,19,'es','Zapatos','zapatos','2013-02-12 05:32:06','2013-02-12 05:32:06'),(188,18,'es','Feet Transient Biology','feettransientbiology','2013-02-12 05:32:06','2013-02-12 05:32:06'),(189,17,'es','Body Disease','bodydisease','2013-02-12 05:32:06','2013-02-12 05:32:06'),(190,16,'es','Marcas','marcas','2013-02-12 05:32:06','2013-02-12 05:32:06'),(191,15,'es','Body','body','2013-02-12 05:32:06','2013-02-12 05:32:06'),(192,14,'es','Pelo de atrĂĄs','pelodeatras','2013-02-12 05:32:06','2013-02-12 05:32:06'),(193,50,'es','Sombrero','sombrero','2013-02-12 05:32:06','2013-02-12 05:32:06'),(194,13,'es','Alas','alas','2013-02-12 05:32:06','2013-02-12 05:32:06'),(195,12,'es','Wings Transient Biology','wingstransientbiology','2013-02-12 05:32:06','2013-02-12 05:32:06'),(196,11,'es','Mochila','mochila','2013-02-12 05:32:06','2013-02-12 05:32:06'),(197,10,'es','Hind Drippings','hinddrippings','2013-02-12 05:32:06','2013-02-12 05:32:06'),(198,9,'es','Hind Transient Biology','hindtransientbiology','2013-02-12 05:32:06','2013-02-12 05:32:06'),(199,8,'es','Cubierta trasera','cubiertatrasera','2013-02-12 05:32:06','2013-02-12 05:32:06'),(200,7,'es','Hind Disease','hinddisease','2013-02-12 05:32:06','2013-02-12 05:32:06'),(201,6,'es','Marcas','marcas','2013-02-12 05:32:06','2013-02-12 05:32:06'),(202,5,'es','Hind Biology','hindbiology','2013-02-12 05:32:06','2013-02-12 05:32:06'),(203,4,'es','Biology Effects','biologyeffects','2013-02-12 05:32:06','2013-02-12 05:32:06'),(204,49,'es','Objeto para la mano derecha','objetoparalamanoderecha','2013-02-12 05:32:06','2013-02-12 05:32:06'),(205,48,'es','Objetos de fondo','objetosdefondo','2013-02-12 05:32:06','2013-02-12 05:32:06'),(206,3,'es','Fondo','fondo','2013-02-12 05:32:06','2013-02-12 05:32:06'),(207,2,'es','Efectos de sonido','efectosdesonido','2013-02-12 05:32:06','2013-02-12 05:32:06'),(208,1,'es','MĂșsica','musica','2013-02-12 05:32:06','2013-02-12 05:32:06'); -/*!40000 ALTER TABLE `zone_translations` ENABLE KEYS */; -UNLOCK TABLES; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; @@ -193,4 +102,4 @@ UNLOCK TABLES; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; --- Dump completed on 2024-02-01 1:53:33 +-- Dump completed on 2024-02-03 7:56:31 diff --git a/scripts/db/public-data-from-modeling.sql.gz b/scripts/db/public-data-from-modeling.sql.gz index ce57bac..d680f59 100644 Binary files a/scripts/db/public-data-from-modeling.sql.gz and b/scripts/db/public-data-from-modeling.sql.gz differ diff --git a/scripts/db/schema-for-id.sql b/scripts/db/schema-for-id.sql index 359897b..354349b 100644 --- a/scripts/db/schema-for-id.sql +++ b/scripts/db/schema-for-id.sql @@ -57,4 +57,4 @@ CREATE TABLE `users` ( /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; --- Dump completed on 2024-02-01 2:00:53 +-- Dump completed on 2024-02-03 7:55:56 diff --git a/scripts/db/schema-for-impress.sql b/scripts/db/schema-for-impress.sql index 6cc3376..40151b1 100644 --- a/scripts/db/schema-for-impress.sql +++ b/scripts/db/schema-for-impress.sql @@ -79,26 +79,6 @@ CREATE TABLE `colors` ( ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; --- --- Table structure for table `color_translations` --- - -DROP TABLE IF EXISTS `color_translations`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `color_translations` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `color_id` int(11) DEFAULT NULL, - `locale` varchar(255) DEFAULT NULL, - `name` varchar(255) DEFAULT NULL, - `created_at` datetime DEFAULT NULL, - `updated_at` datetime DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `index_color_translations_on_color_id` (`color_id`), - KEY `index_color_translations_on_locale` (`locale`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; - -- -- Table structure for table `items` -- @@ -249,26 +229,6 @@ CREATE TABLE `species` ( ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; --- --- Table structure for table `species_translations` --- - -DROP TABLE IF EXISTS `species_translations`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `species_translations` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `species_id` int(11) DEFAULT NULL, - `locale` varchar(255) DEFAULT NULL, - `name` varchar(255) DEFAULT NULL, - `created_at` datetime DEFAULT NULL, - `updated_at` datetime DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `index_species_translations_on_species_id` (`species_id`), - KEY `index_species_translations_on_locale` (`locale`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; - -- -- Table structure for table `swf_assets` -- @@ -342,27 +302,6 @@ CREATE TABLE `zones` ( PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; - --- --- Table structure for table `zone_translations` --- - -DROP TABLE IF EXISTS `zone_translations`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `zone_translations` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `zone_id` int(11) DEFAULT NULL, - `locale` varchar(255) DEFAULT NULL, - `label` varchar(255) DEFAULT NULL, - `plain_label` varchar(255) DEFAULT NULL, - `created_at` datetime DEFAULT NULL, - `updated_at` datetime DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `index_zone_translations_on_zone_id` (`zone_id`), - KEY `index_zone_translations_on_locale` (`locale`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; @@ -373,4 +312,4 @@ CREATE TABLE `zone_translations` ( /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; --- Dump completed on 2024-02-01 2:00:51 +-- Dump completed on 2024-02-03 7:55:53 diff --git a/scripts/setup-mysql.sql b/scripts/setup-mysql.sql index f6e7722..ba6bd75 100644 --- a/scripts/setup-mysql.sql +++ b/scripts/setup-mysql.sql @@ -4,7 +4,6 @@ USE openneo_impress; GRANT SELECT ON alt_styles TO impress2020; GRANT SELECT ON campaigns TO impress2020; GRANT SELECT ON colors TO impress2020; -GRANT SELECT ON color_translations TO impress2020; GRANT SELECT ON donation_features TO impress2020; GRANT SELECT ON donations TO impress2020; GRANT SELECT ON items TO impress2020; @@ -14,10 +13,8 @@ GRANT SELECT ON parents_swf_assets TO impress2020; GRANT SELECT ON pet_types TO impress2020; GRANT SELECT ON pet_states TO impress2020; GRANT SELECT ON species TO impress2020; -GRANT SELECT ON species_translations TO impress2020; GRANT SELECT ON swf_assets TO impress2020; GRANT SELECT ON zones TO impress2020; -GRANT SELECT ON zone_translations TO impress2020; -- Public data tables: write. Used in modeling and support tools. GRANT INSERT, UPDATE ON items TO impress2020; diff --git a/src/server/loaders.js b/src/server/loaders.js index 1cae144..9d6083f 100644 --- a/src/server/loaders.js +++ b/src/server/loaders.js @@ -88,25 +88,6 @@ const buildColorLoader = (db) => { return colorLoader; }; -const buildColorTranslationLoader = (db) => - new DataLoader(async (colorIds) => { - const qs = colorIds.map((_) => "?").join(","); - const [rows] = await db.execute( - `SELECT * FROM color_translations - WHERE color_id IN (${qs}) AND locale = "en"`, - colorIds, - ); - - const entities = rows.map(normalizeRow); - const entitiesByColorId = new Map(entities.map((e) => [e.colorId, e])); - - return colorIds.map( - (colorId) => - entitiesByColorId.get(String(colorId)) || - new Error(`could not find translation for color ${colorId}`), - ); - }); - const buildSpeciesLoader = (db) => { const speciesLoader = new DataLoader(async (speciesIds) => { const qs = speciesIds.map((_) => "?").join(","); @@ -139,25 +120,6 @@ const buildSpeciesLoader = (db) => { return speciesLoader; }; -const buildSpeciesTranslationLoader = (db) => - new DataLoader(async (speciesIds) => { - const qs = speciesIds.map((_) => "?").join(","); - const [rows] = await db.execute( - `SELECT * FROM species_translations - WHERE species_id IN (${qs}) AND locale = "en"`, - speciesIds, - ); - - const entities = rows.map(normalizeRow); - const entitiesBySpeciesId = new Map(entities.map((e) => [e.speciesId, e])); - - return speciesIds.map( - (speciesId) => - entitiesBySpeciesId.get(String(speciesId)) || - new Error(`could not find translation for species ${speciesId}`), - ); - }); - const buildTradeMatchesLoader = (db) => new DataLoader( async (userPairs) => { @@ -1487,24 +1449,6 @@ const buildZoneLoader = (db) => { return zoneLoader; }; -const buildZoneTranslationLoader = (db) => - new DataLoader(async (zoneIds) => { - const qs = zoneIds.map((_) => "?").join(","); - const [rows] = await db.execute( - `SELECT * FROM zone_translations WHERE zone_id IN (${qs}) AND locale = "en"`, - zoneIds, - ); - - const entities = rows.map(normalizeRow); - const entitiesByZoneId = new Map(entities.map((e) => [e.zoneId, e])); - - return zoneIds.map( - (zoneId) => - entitiesByZoneId.get(String(zoneId)) || - new Error(`could not find translation for zone ${zoneId}`), - ); - }); - function buildLoaders(db) { const loaders = {}; loaders.loadAllPetTypes = loadAllPetTypes(db); @@ -1514,7 +1458,6 @@ function buildLoaders(db) { loaders.closetHangersForDefaultListLoader = buildClosetHangersForDefaultListLoader(db); loaders.colorLoader = buildColorLoader(db); - loaders.colorTranslationLoader = buildColorTranslationLoader(db); loaders.itemLoader = buildItemLoader(db); loaders.itemTranslationLoader = buildItemTranslationLoader(db); loaders.itemByNameLoader = buildItemByNameLoader(db, loaders); @@ -1563,7 +1506,6 @@ function buildLoaders(db) { loaders.petStateByPetTypeAndAssetsLoader = buildPetStateByPetTypeAndAssetsLoader(db, loaders); loaders.speciesLoader = buildSpeciesLoader(db); - loaders.speciesTranslationLoader = buildSpeciesTranslationLoader(db); loaders.tradeMatchesLoader = buildTradeMatchesLoader(db); loaders.userLoader = buildUserLoader(db); loaders.userByNameLoader = buildUserByNameLoader(db); @@ -1575,7 +1517,6 @@ function buildLoaders(db) { loaders.userOutfitsLoader = buildUserOutfitsLoader(db, loaders); loaders.userLastTradeActivityLoader = buildUserLastTradeActivityLoader(db); loaders.zoneLoader = buildZoneLoader(db); - loaders.zoneTranslationLoader = buildZoneTranslationLoader(db); return loaders; } diff --git a/src/server/types/MutationsForSupport.js b/src/server/types/MutationsForSupport.js index b0a123d..b9778c8 100644 --- a/src/server/types/MutationsForSupport.js +++ b/src/server/types/MutationsForSupport.js @@ -104,22 +104,20 @@ const resolvers = { setManualSpecialColor: async ( _, { itemId, colorId, supportSecret }, - { itemLoader, itemTranslationLoader, colorTranslationLoader, db } + { itemLoader, itemTranslationLoader, colorLoader, db }, ) => { assertSupportSecretOrThrow(supportSecret); const oldItem = await itemLoader.load(itemId); - const [ - result, - ] = await db.execute( + const [result] = await db.execute( `UPDATE items SET manual_special_color_id = ? WHERE id = ? LIMIT 1`, - [colorId, itemId] + [colorId, itemId], ); if (result.affectedRows !== 1) { throw new Error( - `Expected to affect 1 item, but affected ${result.affectedRows}` + `Expected to affect 1 item, but affected ${result.affectedRows}`, ); } @@ -127,25 +125,19 @@ const resolvers = { if (process.env["SUPPORT_TOOLS_DISCORD_WEBHOOK_URL"]) { try { - const [ - itemTranslation, - oldColorTranslation, - newColorTranslation, - ] = await Promise.all([ + const [itemTranslation, oldColor, newColor] = await Promise.all([ itemTranslationLoader.load(itemId), oldItem.manualSpecialColorId - ? colorTranslationLoader.load(oldItem.manualSpecialColorId) - : Promise.resolve(null), - colorId - ? colorTranslationLoader.load(colorId) + ? colorLoader.load(oldItem.manualSpecialColorId) : Promise.resolve(null), + colorId ? colorLoader.load(colorId) : Promise.resolve(null), ]); - const oldColorName = oldColorTranslation - ? capitalize(oldColorTranslation.name) + const oldColorName = oldColor + ? capitalize(oldColor.name) : "Auto-detect"; - const newColorName = newColorTranslation - ? capitalize(newColorTranslation.name) + const newColorName = newColor + ? capitalize(newColor.name) : "Auto-detect"; await logToDiscord({ embeds: [ @@ -180,22 +172,20 @@ const resolvers = { setItemExplicitlyBodySpecific: async ( _, { itemId, explicitlyBodySpecific, supportSecret }, - { itemLoader, itemTranslationLoader, db } + { itemLoader, itemTranslationLoader, db }, ) => { assertSupportSecretOrThrow(supportSecret); const oldItem = await itemLoader.load(itemId); - const [ - result, - ] = await db.execute( + const [result] = await db.execute( `UPDATE items SET explicitly_body_specific = ? WHERE id = ? LIMIT 1`, - [explicitlyBodySpecific ? 1 : 0, itemId] + [explicitlyBodySpecific ? 1 : 0, itemId], ); if (result.affectedRows !== 1) { throw new Error( - `Expected to affect 1 item, but affected ${result.affectedRows}` + `Expected to affect 1 item, but affected ${result.affectedRows}`, ); } @@ -243,22 +233,20 @@ const resolvers = { setItemIsManuallyNc: async ( _, { itemId, isManuallyNc, supportSecret }, - { itemLoader, itemTranslationLoader, db } + { itemLoader, itemTranslationLoader, db }, ) => { assertSupportSecretOrThrow(supportSecret); const oldItem = await itemLoader.load(itemId); - const [ - result, - ] = await db.execute( + const [result] = await db.execute( `UPDATE items SET is_manually_nc = ? WHERE id = ? LIMIT 1`, - [isManuallyNc ? 1 : 0, itemId] + [isManuallyNc ? 1 : 0, itemId], ); if (result.affectedRows !== 1) { throw new Error( - `Expected to affect 1 item, but affected ${result.affectedRows}` + `Expected to affect 1 item, but affected ${result.affectedRows}`, ); } @@ -306,20 +294,14 @@ const resolvers = { setLayerBodyId: async ( _, { layerId, bodyId, supportSecret }, - { - itemLoader, - itemTranslationLoader, - swfAssetLoader, - zoneTranslationLoader, - db, - } + { itemLoader, itemTranslationLoader, swfAssetLoader, zoneLoader, db }, ) => { assertSupportSecretOrThrow(supportSecret); const oldSwfAsset = await swfAssetLoader.load(layerId); if (!oldSwfAsset) { console.warn( - `Skipping setLayerBodyId for unknown layer ID: ${layerId}` + `Skipping setLayerBodyId for unknown layer ID: ${layerId}`, ); return null; } @@ -328,21 +310,19 @@ const resolvers = { if (oldSwfAsset.bodyId === bodyId) { console.info( `Skipping setLayerBodyId for ${layerId}: no change. ` + - `(bodyId=${oldSwfAsset.bodyId})` + `(bodyId=${oldSwfAsset.bodyId})`, ); return { id: layerId }; } - const [ - result, - ] = await db.execute( + const [result] = await db.execute( `UPDATE swf_assets SET body_id = ? WHERE id = ? LIMIT 1`, - [bodyId, layerId] + [bodyId, layerId], ); if (result.affectedRows !== 1) { throw new Error( - `Expected to affect 1 layer, but affected ${result.affectedRows}` + `Expected to affect 1 layer, but affected ${result.affectedRows}`, ); } @@ -354,23 +334,18 @@ const resolvers = { .execute( `SELECT parent_id FROM parents_swf_assets WHERE swf_asset_id = ? AND parent_type = "Item" LIMIT 1;`, - [layerId] + [layerId], ) .then(([rows]) => normalizeRow(rows[0]).parentId); - const [ - item, - itemTranslation, - zoneTranslation, - oldBodyName, - newBodyName, - ] = await Promise.all([ - itemLoader.load(itemId), - itemTranslationLoader.load(itemId), - zoneTranslationLoader.load(oldSwfAsset.zoneId), - loadBodyName(oldSwfAsset.bodyId, db), - loadBodyName(bodyId, db), - ]); + const [item, itemTranslation, zone, oldBodyName, newBodyName] = + await Promise.all([ + itemLoader.load(itemId), + itemTranslationLoader.load(itemId), + zoneLoader.load(oldSwfAsset.zoneId), + loadBodyName(oldSwfAsset.bodyId, db), + loadBodyName(bodyId, db), + ]); await logToDiscord({ embeds: [ @@ -384,7 +359,7 @@ const resolvers = { fields: [ { name: - `Layer ${layerId} (${zoneTranslation.label}): ` + + `Layer ${layerId} (${zone.label}): ` + `Pet compatibility`, value: `${oldBodyName} → **${newBodyName}**`, }, @@ -411,20 +386,20 @@ const resolvers = { itemLoader, itemTranslationLoader, swfAssetLoader, - zoneTranslationLoader, + zoneLoader, petStateLoader, petTypeLoader, - colorTranslationLoader, - speciesTranslationLoader, + colorLoader, + speciesLoader, db, - } + }, ) => { assertSupportSecretOrThrow(supportSecret); const oldSwfAsset = await swfAssetLoader.load(layerId); if (!oldSwfAsset) { console.warn( - `Skipping setLayerKnownGlitches for unknown layer ID: ${layerId}` + `Skipping setLayerKnownGlitches for unknown layer ID: ${layerId}`, ); return null; } @@ -435,21 +410,19 @@ const resolvers = { if (oldSwfAsset.knownGlitches === newKnownGlitchesString) { console.info( `Skipping setLayerKnownGlitches for ${layerId}: no change. ` + - `(knownGlitches=${oldSwfAsset.knownGlitches})` + `(knownGlitches=${oldSwfAsset.knownGlitches})`, ); return { id: layerId }; } - const [ - result, - ] = await db.execute( + const [result] = await db.execute( `UPDATE swf_assets SET known_glitches = ? WHERE id = ? LIMIT 1`, - [newKnownGlitchesString, layerId] + [newKnownGlitchesString, layerId], ); if (result.affectedRows !== 1) { throw new Error( - `Expected to affect 1 layer, but affected ${result.affectedRows}` + `Expected to affect 1 layer, but affected ${result.affectedRows}`, ); } @@ -461,15 +434,15 @@ const resolvers = { .execute( `SELECT parent_type, parent_id FROM parents_swf_assets WHERE swf_asset_id = ? LIMIT 1;`, - [layerId] + [layerId], ) .then(([rows]) => normalizeRow(rows[0])); if (parentType === "Item") { - const [item, itemTranslation, zoneTranslation] = await Promise.all([ + const [item, itemTranslation, zone] = await Promise.all([ itemLoader.load(parentId), itemTranslationLoader.load(parentId), - zoneTranslationLoader.load(oldSwfAsset.zoneId), + zoneLoader.load(oldSwfAsset.zoneId), ]); await logToDiscord({ @@ -484,8 +457,7 @@ const resolvers = { fields: [ { name: - `Layer ${layerId} (${zoneTranslation.label}): ` + - `Known glitches`, + `Layer ${layerId} (${zone.label}): ` + `Known glitches`, value: `${oldSwfAsset.knownGlitches || ""} → **${ newKnownGlitchesString || "" }**`, @@ -499,18 +471,14 @@ const resolvers = { } else if (parentType === "PetState") { const petState = await petStateLoader.load(parentId); const petType = await petTypeLoader.load(petState.petTypeId); - const [ - colorTranslation, - speciesTranslation, - zoneTranslation, - ] = await Promise.all([ - colorTranslationLoader.load(petType.colorId), - speciesTranslationLoader.load(petType.speciesId), - zoneTranslationLoader.load(oldSwfAsset.zoneId), + const [color, species, zone] = await Promise.all([ + colorLoader.load(petType.colorId), + speciesLoader.load(petType.speciesId), + zoneLoader.load(oldSwfAsset.zoneId), ]); - const colorName = capitalize(colorTranslation.name); - const speciesName = capitalize(speciesTranslation.name); + const colorName = capitalize(color.name); + const speciesName = capitalize(species.name); const pose = getPoseFromPetState(petState); await logToDiscord({ @@ -526,7 +494,7 @@ const resolvers = { }, fields: [ { - name: `Appearance ${petState.id}, Layer ${layerId} (${zoneTranslation.label}): Known glitches`, + name: `Appearance ${petState.id}, Layer ${layerId} (${zone.label}): Known glitches`, value: `${oldSwfAsset.knownGlitches || ""} → **${ newKnownGlitchesString || "" }**`, @@ -539,7 +507,7 @@ const resolvers = { }); } else { console.error( - `Error building Discord support log: unexpected parent type ${parentType}` + `Error building Discord support log: unexpected parent type ${parentType}`, ); } } catch (e) { @@ -555,14 +523,14 @@ const resolvers = { bulkAddLayersToItem: async ( _, { itemId, entries, supportSecret }, - { itemLoader, itemTranslationLoader, db } + { itemLoader, itemTranslationLoader, db }, ) => { assertSupportSecretOrThrow(supportSecret); const item = await itemLoader.load(itemId); if (!item) { console.warn( - `Skipping removeLayerFromItem for unknown item ID: ${itemId}` + `Skipping removeLayerFromItem for unknown item ID: ${itemId}`, ); return null; } @@ -585,7 +553,7 @@ const resolvers = { swf_asset_id = ? ) `, - [itemId, layerId, itemId, layerId] + [itemId, layerId, itemId, layerId], ), ]); }; @@ -629,13 +597,7 @@ const resolvers = { removeLayerFromItem: async ( _, { layerId, itemId, supportSecret }, - { - itemLoader, - itemTranslationLoader, - swfAssetLoader, - zoneTranslationLoader, - db, - } + { itemLoader, itemTranslationLoader, swfAssetLoader, zoneLoader, db }, ) => { assertSupportSecretOrThrow(supportSecret); @@ -645,12 +607,12 @@ const resolvers = { `DELETE FROM parents_swf_assets ` + `WHERE swf_asset_id = ? AND parent_type = "Item" AND parent_id = ? ` + `LIMIT 1`, - [layerId, itemId] + [layerId, itemId], ); if (result.affectedRows !== 1) { throw new Error( - `Expected to affect 1 layer, but affected ${result.affectedRows}` + `Expected to affect 1 layer, but affected ${result.affectedRows}`, ); } @@ -658,15 +620,10 @@ const resolvers = { if (process.env["SUPPORT_TOOLS_DISCORD_WEBHOOK_URL"]) { try { - const [ - item, - itemTranslation, - zoneTranslation, - bodyName, - ] = await Promise.all([ + const [item, itemTranslation, zone, bodyName] = await Promise.all([ itemLoader.load(itemId), itemTranslationLoader.load(itemId), - zoneTranslationLoader.load(oldSwfAsset.zoneId), + zoneLoader.load(oldSwfAsset.zoneId), loadBodyName(oldSwfAsset.bodyId, db), ]); @@ -681,7 +638,7 @@ const resolvers = { }, fields: [ { - name: `Layer ${layerId} (${zoneTranslation.label})`, + name: `Layer ${layerId} (${zone.label})`, value: `❌ Removed from ${bodyName}`, }, ], @@ -703,34 +660,24 @@ const resolvers = { setPetAppearancePose: async ( _, { appearanceId, pose, supportSecret }, - { - colorTranslationLoader, - speciesTranslationLoader, - petStateLoader, - petTypeLoader, - db, - } + { colorLoader, speciesLoader, petStateLoader, petTypeLoader, db }, ) => { assertSupportSecretOrThrow(supportSecret); const oldPetState = await petStateLoader.load(appearanceId); - const { - moodId, - female, - unconverted, - labeled, - } = getPetStateFieldsFromPose(pose); + const { moodId, female, unconverted, labeled } = + getPetStateFieldsFromPose(pose); const [result] = await db.execute( `UPDATE pet_states SET mood_id = ?, female = ?, unconverted = ?, labeled = ? WHERE id = ? LIMIT 1`, - [moodId, female, unconverted, labeled, appearanceId] + [moodId, female, unconverted, labeled, appearanceId], ); if (result.affectedRows !== 1) { throw new Error( - `Expected to affect 1 layer, but affected ${result.affectedRows}` + `Expected to affect 1 layer, but affected ${result.affectedRows}`, ); } @@ -740,14 +687,14 @@ const resolvers = { if (process.env["SUPPORT_TOOLS_DISCORD_WEBHOOK_URL"]) { try { const petType = await petTypeLoader.load(oldPetState.petTypeId); - const [colorTranslation, speciesTranslation] = await Promise.all([ - colorTranslationLoader.load(petType.colorId), - speciesTranslationLoader.load(petType.speciesId), + const [color, species] = await Promise.all([ + colorLoader.load(petType.colorId), + speciesLoader.load(petType.speciesId), ]); const oldPose = getPoseFromPetState(oldPetState); - const colorName = capitalize(colorTranslation.name); - const speciesName = capitalize(speciesTranslation.name); + const colorName = capitalize(color.name); + const speciesName = capitalize(species.name); await logToDiscord({ embeds: [ @@ -784,28 +731,20 @@ const resolvers = { setPetAppearanceIsGlitched: async ( _, { appearanceId, isGlitched, supportSecret }, - { - colorTranslationLoader, - speciesTranslationLoader, - petStateLoader, - petTypeLoader, - db, - } + { colorLoader, speciesLoader, petStateLoader, petTypeLoader, db }, ) => { assertSupportSecretOrThrow(supportSecret); const oldPetState = await petStateLoader.load(appearanceId); - const [ - result, - ] = await db.execute( + const [result] = await db.execute( `UPDATE pet_states SET glitched = ? WHERE id = ? LIMIT 1`, - [isGlitched, appearanceId] + [isGlitched, appearanceId], ); if (result.affectedRows !== 1) { throw new Error( - `Expected to affect 1 layer, but affected ${result.affectedRows}` + `Expected to affect 1 layer, but affected ${result.affectedRows}`, ); } @@ -815,13 +754,13 @@ const resolvers = { if (process.env["SUPPORT_TOOLS_DISCORD_WEBHOOK_URL"]) { try { const petType = await petTypeLoader.load(oldPetState.petTypeId); - const [colorTranslation, speciesTranslation] = await Promise.all([ - colorTranslationLoader.load(petType.colorId), - speciesTranslationLoader.load(petType.speciesId), + const [color, species] = await Promise.all([ + colorLoader.load(petType.colorId), + speciesLoader.load(petType.speciesId), ]); - const colorName = capitalize(colorTranslation.name); - const speciesName = capitalize(speciesTranslation.name); + const colorName = capitalize(color.name); + const speciesName = capitalize(species.name); const pose = getPoseFromPetState(oldPetState); const oldGlitchinessState = @@ -863,7 +802,7 @@ const resolvers = { setUsername: async ( _, { userId, newUsername, supportSecret }, - { userLoader, db } + { userLoader, db }, ) => { assertSupportSecretOrThrow(supportSecret); @@ -881,18 +820,18 @@ const resolvers = { UPDATE users SET name = ? WHERE id = ? LIMIT 1; UPDATE openneo_id.users SET name = ? WHERE id = ? LIMIT 1; `, - [newUsername, userId, newUsername, oldUser.remoteId] + [newUsername, userId, newUsername, oldUser.remoteId], ); if (result1.affectedRows !== 1) { throw new Error( - `[UPDATE 1] Expected to affect 1 user, but affected ${result1.affectedRows}` + `[UPDATE 1] Expected to affect 1 user, but affected ${result1.affectedRows}`, ); } if (result2.affectedRows !== 1) { throw new Error( - `[UPDATE 2] Expected to affect 1 user, but affected ${result2.affectedRows}` + `[UPDATE 2] Expected to affect 1 user, but affected ${result2.affectedRows}`, ); } @@ -907,7 +846,7 @@ const resolvers = { try { await getAuth0().users.update( { id: `auth0|impress-${userId}` }, - { username: newUsername } + { username: newUsername }, ); } catch (error) { if (error.statusCode === 404) { @@ -938,8 +877,7 @@ const resolvers = { const auth0WarningFields = auth0Warning ? [ { - name: - "⚠ Auth0 warning, update skipped (maybe they weren't imported?)", + name: "⚠ Auth0 warning, update skipped (maybe they weren't imported?)", value: auth0Warning.message, }, ] diff --git a/src/server/types/PetAppearance.js b/src/server/types/PetAppearance.js index 0e3a553..69b2e86 100644 --- a/src/server/types/PetAppearance.js +++ b/src/server/types/PetAppearance.js @@ -136,14 +136,14 @@ const typeDefs = gql` const resolvers = { Color: { - name: async ({ id }, _, { colorTranslationLoader }) => { + name: async ({ id }, _, { colorLoader }) => { // TODO: Add colorId=0 to the database? Pets on Neopets.com can have it. if (id === "0") { return "Unknown"; } - const colorTranslation = await colorTranslationLoader.load(id); - return capitalize(colorTranslation.name); + const color = await colorLoader.load(id); + return capitalize(color.name); }, isStandard: async ({ id }, _, { colorLoader }) => { // TODO: Add colorId=0 to the database? Pets on Neopets.com can have it. @@ -157,7 +157,7 @@ const resolvers = { appliedToAllCompatibleSpecies: async ( { id }, _, - { petTypesForColorLoader } + { petTypesForColorLoader }, ) => { const petTypes = await petTypesForColorLoader.load(id); const speciesColorPairs = petTypes.map((petType) => ({ id: petType.id })); @@ -166,15 +166,15 @@ const resolvers = { }, Species: { - name: async ({ id }, _, { speciesTranslationLoader }) => { - const speciesTranslation = await speciesTranslationLoader.load(id); - return capitalize(speciesTranslation.name); + name: async ({ id }, _, { speciesLoader }) => { + const species = await speciesLoader.load(id); + return capitalize(species.name); }, canonicalAppearance: async ( { id, species }, { preferredColorId }, - { petTypeBySpeciesAndColorLoader, canonicalPetStateForBodyLoader } + { petTypeBySpeciesAndColorLoader, canonicalPetStateForBodyLoader }, ) => { const petType = await petTypeBySpeciesAndColorLoader.load({ speciesId: id, @@ -221,7 +221,7 @@ const resolvers = { withColor: async ( { id }, { colorId }, - { petTypeBySpeciesAndColorLoader } + { petTypeBySpeciesAndColorLoader }, ) => { const petType = await petTypeBySpeciesAndColorLoader.load({ speciesId: id, @@ -244,7 +244,7 @@ const resolvers = { } throw new Error( "HACK: We populate this when you look up a canonicalAppearance, but " + - "don't have a direct query for it yet, oops!" + "don't have a direct query for it yet, oops!", ); }, representsAllBodies: ({ id }) => { @@ -253,7 +253,7 @@ const resolvers = { canonicalAppearance: async ( { id, species }, { preferredColorId }, - { canonicalPetStateForBodyLoader } + { canonicalPetStateForBodyLoader }, ) => { const petState = await canonicalPetStateForBodyLoader.load({ bodyId: id, @@ -331,7 +331,7 @@ const resolvers = { canonicalAppearance: async ( { id }, _, - { petTypeLoader, canonicalPetStateForBodyLoader } + { petTypeLoader, canonicalPetStateForBodyLoader }, ) => { const petType = await petTypeLoader.load(id); @@ -386,7 +386,7 @@ const resolvers = { petAppearance: async ( _, { speciesId, colorId, pose }, - { petTypeBySpeciesAndColorLoader, petStatesForPetTypeLoader } + { petTypeBySpeciesAndColorLoader, petStatesForPetTypeLoader }, ) => { const petType = await petTypeBySpeciesAndColorLoader.load({ speciesId, @@ -409,7 +409,7 @@ const resolvers = { petAppearances: async ( _, { speciesId, colorId }, - { petTypeBySpeciesAndColorLoader, petStatesForPetTypeLoader } + { petTypeBySpeciesAndColorLoader, petStatesForPetTypeLoader }, ) => { const petType = await petTypeBySpeciesAndColorLoader.load({ speciesId, @@ -421,7 +421,7 @@ const resolvers = { speciesColorPairsThatNeedSupportLabeling: async ( _, __, - { db, petTypeLoader } + { db, petTypeLoader }, ) => { const [rows] = await db.query( ` @@ -443,7 +443,7 @@ const resolvers = { AND (unconverted = 0 OR unconverted IS NULL) AND glitched = 0 ) >= 1; - ` + `, ); const petTypes = rows.map(normalizeRow); @@ -458,61 +458,61 @@ const resolvers = { // NOTE: This matches the colors on ItemPage, so that they always match! const colors = { BLUE: "8", RED: "61", GREEN: "34", YELLOW: "84" }; const FALLBACK_COLOR_IDS = { - "1": colors.GREEN, // Acara - "2": colors.BLUE, // Aisha - "3": colors.YELLOW, // Blumaroo - "4": colors.YELLOW, // Bori - "5": colors.YELLOW, // Bruce - "6": colors.YELLOW, // Buzz - "7": colors.RED, // Chia - "8": colors.YELLOW, // Chomby - "9": colors.GREEN, // Cybunny - "10": colors.YELLOW, // Draik - "11": colors.RED, // Elephante - "12": colors.RED, // Eyrie - "13": colors.GREEN, // Flotsam - "14": colors.YELLOW, // Gelert - "15": colors.BLUE, // Gnorbu - "16": colors.BLUE, // Grarrl - "17": colors.GREEN, // Grundo - "18": colors.RED, // Hissi - "19": colors.GREEN, // Ixi - "20": colors.YELLOW, // Jetsam - "21": colors.GREEN, // Jubjub - "22": colors.YELLOW, // Kacheek - "23": colors.BLUE, // Kau - "24": colors.GREEN, // Kiko - "25": colors.GREEN, // Koi - "26": colors.RED, // Korbat - "27": colors.BLUE, // Kougra - "28": colors.BLUE, // Krawk - "29": colors.YELLOW, // Kyrii - "30": colors.YELLOW, // Lenny - "31": colors.YELLOW, // Lupe - "32": colors.BLUE, // Lutari - "33": colors.YELLOW, // Meerca - "34": colors.GREEN, // Moehog - "35": colors.BLUE, // Mynci - "36": colors.BLUE, // Nimmo - "37": colors.YELLOW, // Ogrin - "38": colors.RED, // Peophin - "39": colors.GREEN, // Poogle - "40": colors.RED, // Pteri - "41": colors.YELLOW, // Quiggle - "42": colors.BLUE, // Ruki - "43": colors.RED, // Scorchio - "44": colors.YELLOW, // Shoyru - "45": colors.RED, // Skeith - "46": colors.YELLOW, // Techo - "47": colors.BLUE, // Tonu - "48": colors.YELLOW, // Tuskaninny - "49": colors.GREEN, // Uni - "50": colors.RED, // Usul - "55": colors.YELLOW, // Vandagyre - "51": colors.YELLOW, // Wocky - "52": colors.RED, // Xweetok - "53": colors.RED, // Yurble - "54": colors.BLUE, // Zafara + 1: colors.GREEN, // Acara + 2: colors.BLUE, // Aisha + 3: colors.YELLOW, // Blumaroo + 4: colors.YELLOW, // Bori + 5: colors.YELLOW, // Bruce + 6: colors.YELLOW, // Buzz + 7: colors.RED, // Chia + 8: colors.YELLOW, // Chomby + 9: colors.GREEN, // Cybunny + 10: colors.YELLOW, // Draik + 11: colors.RED, // Elephante + 12: colors.RED, // Eyrie + 13: colors.GREEN, // Flotsam + 14: colors.YELLOW, // Gelert + 15: colors.BLUE, // Gnorbu + 16: colors.BLUE, // Grarrl + 17: colors.GREEN, // Grundo + 18: colors.RED, // Hissi + 19: colors.GREEN, // Ixi + 20: colors.YELLOW, // Jetsam + 21: colors.GREEN, // Jubjub + 22: colors.YELLOW, // Kacheek + 23: colors.BLUE, // Kau + 24: colors.GREEN, // Kiko + 25: colors.GREEN, // Koi + 26: colors.RED, // Korbat + 27: colors.BLUE, // Kougra + 28: colors.BLUE, // Krawk + 29: colors.YELLOW, // Kyrii + 30: colors.YELLOW, // Lenny + 31: colors.YELLOW, // Lupe + 32: colors.BLUE, // Lutari + 33: colors.YELLOW, // Meerca + 34: colors.GREEN, // Moehog + 35: colors.BLUE, // Mynci + 36: colors.BLUE, // Nimmo + 37: colors.YELLOW, // Ogrin + 38: colors.RED, // Peophin + 39: colors.GREEN, // Poogle + 40: colors.RED, // Pteri + 41: colors.YELLOW, // Quiggle + 42: colors.BLUE, // Ruki + 43: colors.RED, // Scorchio + 44: colors.YELLOW, // Shoyru + 45: colors.RED, // Skeith + 46: colors.YELLOW, // Techo + 47: colors.BLUE, // Tonu + 48: colors.YELLOW, // Tuskaninny + 49: colors.GREEN, // Uni + 50: colors.RED, // Usul + 55: colors.YELLOW, // Vandagyre + 51: colors.YELLOW, // Wocky + 52: colors.RED, // Xweetok + 53: colors.RED, // Yurble + 54: colors.BLUE, // Zafara }; module.exports = { typeDefs, resolvers }; diff --git a/src/server/types/Zone.js b/src/server/types/Zone.js index a3a9a8b..fe3bd81 100644 --- a/src/server/types/Zone.js +++ b/src/server/types/Zone.js @@ -23,9 +23,9 @@ const resolvers = { const zone = await zoneLoader.load(id); return zone.depth; }, - label: async ({ id }, _, { zoneTranslationLoader }) => { - const zoneTranslation = await zoneTranslationLoader.load(id); - return zoneTranslation.label; + label: async ({ id }, _, { zoneLoader }) => { + const zone = await zoneLoader.load(id); + return zone.label; }, isCommonlyUsedByItems: async ({ id }, _, { zoneLoader }) => { // Zone metadata marks item zones with types 2, 3, and 4. But also, in diff --git a/src/server/util.js b/src/server/util.js index c46eb6c..7cef149 100644 --- a/src/server/util.js +++ b/src/server/util.js @@ -29,7 +29,7 @@ function getPoseFromPetState(petState) { `could not identify pose: ` + `moodId=${moodId}, ` + `female=${female}, ` + - `unconverted=${unconverted}` + `unconverted=${unconverted}`, ); } } @@ -87,16 +87,13 @@ async function loadBodyName(bodyId, db) { } const [rows] = await db.execute( - `SELECT pt.body_id, st.name AS species_name, - ct.name AS color_name, c.standard FROM pet_types pt - INNER JOIN species_translations st - ON pt.species_id = st.species_id AND st.locale = "en" - INNER JOIN color_translations ct - ON pt.color_id = ct.color_id AND ct.locale = "en" + `SELECT pt.body_id, s.name AS species_name, + c.name AS color_name, c.standard FROM pet_types pt + INNER JOIN species s ON pt.species_id = s.id INNER JOIN colors c ON c.id = pt.color_id - WHERE pt.body_id = ? - ORDER BY c.standard DESC, ct.name, st.name LIMIT 1;`, - [bodyId] + WHERE pt.body_id = ? + ORDER BY c.standard DESC, color_name, species_name LIMIT 1;`, + [bodyId], ); const row = normalizeRow(rows[0]); const speciesName = capitalize(row.speciesName); @@ -119,7 +116,7 @@ async function logToDiscord(body) { if (!res.ok) { const resText = await res.text(); throw new Error( - `Discord returned ${res.status} ${res.statusText}: ${resText}` + `Discord returned ${res.status} ${res.statusText}: ${resText}`, ); } } finally {