Update public data SQL dump, mainly to add alt styles

Note also the change to the public-data-constants, because we've
started (but not finished) moving name fields into the rows themselves
and deprecating the translations.
This commit is contained in:
Emi Matchu 2024-02-01 02:01:50 -08:00
parent f2fd019aa8
commit 505f420d96
7 changed files with 32 additions and 23 deletions

View file

@ -1,7 +1,7 @@
yarn --silent mysqldump openneo_impress species species_translations colors \
yarn run --silent mysqldump openneo_impress species species_translations colors \
color_translations zones zone_translations \
> $(dirname $0)/../public-data-constants.sql \
&& yarn --silent mysqldump openneo_impress items item_translations \
&& yarn run --silent mysqldump openneo_impress alt_styles items item_translations \
parents_swf_assets pet_states pet_types swf_assets \
| gzip -c \
> $(dirname $0)/../public-data-from-modeling.sql.gz

View file

@ -1,11 +1,11 @@
yarn --silent mysqldump --no-data openneo_impress closet_hangers closet_lists \
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 \
| \
sed 's/ AUTO_INCREMENT=[0-9]*//g' \
> $(dirname $0)/../schema-for-impress.sql \
&& yarn --silent mysqldump --no-data openneo_id users \
&& yarn run --silent mysqldump --no-data openneo_id users \
| \
sed 's/ AUTO_INCREMENT=[0-9]*//g' \
> $(dirname $0)/../schema-for-id.sql

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
-- MariaDB dump 10.18 Distrib 10.4.17-MariaDB, for Linux (x86_64)
-- MariaDB dump 10.19 Distrib 10.6.16-MariaDB, for debian-linux-gnu (x86_64)
--
-- Host: impress.openneo.net Database: openneo_id
-- Host: legacy.impress.openneo.net Database: openneo_id
-- ------------------------------------------------------
-- Server version 5.5.62-0ubuntu0.14.04.1-log
@ -40,6 +40,7 @@ CREATE TABLE `users` (
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
`reset_password_sent_at` datetime DEFAULT NULL,
`remember_created_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `index_users_on_email` (`email`),
UNIQUE KEY `index_users_on_reset_password_token` (`reset_password_token`),
@ -56,4 +57,4 @@ CREATE TABLE `users` (
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2022-11-13 6:46:08
-- Dump completed on 2024-02-01 2:00:53

View file

@ -1,6 +1,6 @@
-- MariaDB dump 10.18 Distrib 10.4.17-MariaDB, for Linux (x86_64)
-- MariaDB dump 10.19 Distrib 10.6.16-MariaDB, for debian-linux-gnu (x86_64)
--
-- Host: impress.openneo.net Database: openneo_impress
-- Host: legacy.impress.openneo.net Database: openneo_impress
-- ------------------------------------------------------
-- Server version 5.5.62-0ubuntu0.14.04.1-log
@ -74,6 +74,7 @@ CREATE TABLE `colors` (
`basic` tinyint(1) DEFAULT NULL,
`standard` tinyint(1) DEFAULT NULL,
`prank` tinyint(1) NOT NULL DEFAULT '0',
`name` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
@ -115,8 +116,6 @@ CREATE TABLE `items` (
`price` mediumint(9) NOT NULL,
`weight_lbs` smallint(6) DEFAULT NULL,
`species_support_ids` mediumtext COLLATE utf8_unicode_ci,
`sold_in_mall` tinyint(1) NOT NULL DEFAULT '0',
`last_spidered` datetime DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
`explicitly_body_specific` tinyint(1) NOT NULL DEFAULT '0',
@ -124,7 +123,6 @@ CREATE TABLE `items` (
`modeling_status_hint` enum('done','glitchy') COLLATE utf8_unicode_ci DEFAULT NULL,
`is_manually_nc` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `objects_last_spidered` (`last_spidered`),
KEY `items_modeling_status_hint` (`modeling_status_hint`),
KEY `items_modeling_status_hint_and_id` (`modeling_status_hint`,`id`),
KEY `items_modeling_status_hint_and_created_at` (`modeling_status_hint`,`created_at`),
@ -246,6 +244,7 @@ DROP TABLE IF EXISTS `species`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `species` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
@ -294,6 +293,7 @@ CREATE TABLE `swf_assets` (
`manifest` mediumtext COLLATE utf8_unicode_ci,
`manifest_cached_at` timestamp NULL DEFAULT NULL,
`known_glitches` varchar(128) COLLATE utf8_unicode_ci DEFAULT '',
`manifest_url` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `swf_assets_body_id_and_object_id` (`body_id`),
KEY `idx_swf_assets_zone_id` (`zone_id`),
@ -317,10 +317,11 @@ CREATE TABLE `users` (
`beta` tinyint(1) NOT NULL DEFAULT '0',
`remember_token` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`remember_created_at` datetime DEFAULT NULL,
`image_mode_tester` tinyint(1) NOT NULL DEFAULT '0',
`owned_closet_hangers_visibility` int(11) NOT NULL DEFAULT '1',
`wanted_closet_hangers_visibility` int(11) NOT NULL DEFAULT '1',
`contact_neopets_connection_id` int(11) DEFAULT NULL,
`last_trade_activity_at` timestamp NULL DEFAULT NULL,
`support_staff` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
@ -336,6 +337,8 @@ CREATE TABLE `zones` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`depth` int(11) DEFAULT NULL,
`type_id` int(11) DEFAULT NULL,
`label` varchar(255) NOT NULL,
`plain_label` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
@ -370,4 +373,4 @@ CREATE TABLE `zone_translations` (
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2022-11-13 6:46:05
-- Dump completed on 2024-02-01 2:00:51

View file

@ -1,6 +1,7 @@
USE openneo_impress;
-- Public data tables: read
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;