From df2d814c13bb7e190f07706e83c9ac88ad085399 Mon Sep 17 00:00:00 2001 From: Matchu Date: Tue, 6 Oct 2020 06:11:22 -0700 Subject: [PATCH] enable running against a local dev database had to add some missing tables, but it seems to work! (some known errors though, from assumptions we make e.g. blue acaras existing) --- package.json | 2 +- scripts/setup-mysql-dev-constants.sql | 58 ++++++++++++++++++++++++++- scripts/setup-mysql-dev-schema.sql | 2 +- src/server/db.js | 30 ++++++++++++-- 4 files changed, 85 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 480f3f5..d3ccd45 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "mysql-dev": "mysql --host=localhost --user=impress_2020_dev --password=impress_2020_dev --database=impress_2020_dev", "mysql-admin": "mysql --host=impress.openneo.net --user=matchu --password --database=openneo_impress", "mysqldump": "mysqldump --host=impress.openneo.net --user=$(dotenv -p IMPRESS_MYSQL_USER) --password=$(dotenv -p IMPRESS_MYSQL_PASSWORD) --column-statistics=0", - "download-mysql-schema": "yarn --silent mysqldump --no-data openneo_impress items item_translations parents_swf_assets pet_types pet_states swf_assets | sed 's/ AUTO_INCREMENT=[0-9]*//g' > scripts/setup-mysql-dev-schema.sql && yarn --silent mysqldump openneo_impress species species_translations colors color_translations > scripts/setup-mysql-dev-constants.sql", + "download-mysql-schema": "yarn --silent mysqldump --no-data openneo_impress items item_translations parents_swf_assets pet_types pet_states swf_assets | sed 's/ AUTO_INCREMENT=[0-9]*//g' > scripts/setup-mysql-dev-schema.sql && yarn --silent mysqldump openneo_impress species species_translations colors color_translations zones zone_translations > scripts/setup-mysql-dev-constants.sql", "setup-mysql": "yarn mysql-admin < scripts/setup-mysql.sql", "setup-mysql-dev": "yarn mysql-dev < scripts/setup-mysql-dev-constants.sql && yarn mysql-dev < scripts/setup-mysql-dev-schema.sql", "build-cached-data": "node -r dotenv/config scripts/build-cached-data.js", diff --git a/scripts/setup-mysql-dev-constants.sql b/scripts/setup-mysql-dev-constants.sql index 0180c57..45d64a7 100644 --- a/scripts/setup-mysql-dev-constants.sql +++ b/scripts/setup-mysql-dev-constants.sql @@ -123,6 +123,62 @@ LOCK TABLES `color_translations` WRITE; 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'); /*!40000 ALTER TABLE `color_translations` ENABLE KEYS */; UNLOCK TABLES; + +-- +-- Table structure for table `zones` +-- + +DROP TABLE IF EXISTS `zones`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `zones` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `depth` int(11) DEFAULT NULL, + `type_id` int(11) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=53 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `zones` +-- + +LOCK TABLES `zones` WRITE; +/*!40000 ALTER TABLE `zones` DISABLE KEYS */; +INSERT INTO `zones` VALUES (1,1,4),(2,2,4),(3,3,3),(4,6,1),(5,7,1),(6,8,2),(7,9,1),(8,10,2),(9,11,1),(10,12,1),(11,13,2),(12,14,1),(13,15,2),(14,17,1),(15,18,1),(16,19,2),(17,20,1),(18,21,1),(19,22,2),(20,23,1),(21,24,2),(22,25,1),(23,26,2),(24,28,2),(25,29,2),(26,30,2),(27,31,2),(28,32,1),(29,33,1),(30,34,1),(31,35,2),(32,36,1),(33,37,1),(34,38,1),(35,41,2),(36,39,2),(37,40,1),(38,42,1),(39,43,1),(40,44,2),(41,45,2),(42,46,2),(43,47,2),(44,49,3),(45,50,3),(46,48,2),(47,51,3),(48,4,3),(49,5,2),(50,16,2),(51,27,2),(52,52,3); +/*!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 */; +/*!50503 SET character_set_client = utf8mb4 */; +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 */; @@ -133,4 +189,4 @@ UNLOCK TABLES; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; --- Dump completed on 2020-09-19 4:19:07 +-- Dump completed on 2020-10-06 6:09:54 diff --git a/scripts/setup-mysql-dev-schema.sql b/scripts/setup-mysql-dev-schema.sql index 2623c24..85a5608 100644 --- a/scripts/setup-mysql-dev-schema.sql +++ b/scripts/setup-mysql-dev-schema.sql @@ -167,4 +167,4 @@ CREATE TABLE `swf_assets` ( /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; --- Dump completed on 2020-09-19 4:19:01 +-- Dump completed on 2020-10-06 6:09:45 diff --git a/src/server/db.js b/src/server/db.js index f06b9d9..5acdac0 100644 --- a/src/server/db.js +++ b/src/server/db.js @@ -2,11 +2,33 @@ const mysql = require("mysql2"); let globalDbs = new Map(); +// We usually run against the production database, even in local testing, +// to easily test against real data. (Not a wise general practice, but fine +// for this low-stakes project and small dev team with mostly read-only +// operations!) +// +// But you can also specify `DB_ENV=development` to use a local database, +// which is especially helpful for end-to-end modeling testing. +const defaultOptions = + process.env["DB_ENV"] === "development" + ? { + host: "localhost", + user: "impress_2020_dev", + password: "impress_2020_dev", + database: "impress_2020_dev", + } + : { + host: "impress.openneo.net", + user: process.env["IMPRESS_MYSQL_USER"], + password: process.env["IMPRESS_MYSQL_PASSWORD"], + database: "openneo_impress", + }; + async function connectToDb({ - host = "impress.openneo.net", - user = process.env["IMPRESS_MYSQL_USER"], - password = process.env["IMPRESS_MYSQL_PASSWORD"], - database = "openneo_impress", + host = defaultOptions.host, + user = defaultOptions.user, + password = defaultOptions.password, + database = defaultOptions.database, } = {}) { if (globalDbs.has(host)) { return globalDbs.get(host);