Fix PR 3 review findings [skip ci]

This commit is contained in:
SCOPEDD committed 2026-09-29 23:21:14 -04:00
1 parent 590178e41a
commit 454620f21e
21 files changed
+522 -160

No files matched your search

+8
View File
@@ -499,6 +499,13 @@ const MIGRATIONS: &[&str] = &[
CREATE TABLE economy_operations (server_id INTEGER NOT NULL REFERENCES game_servers(id) ON DELETE CASCADE,
operation_id TEXT NOT NULL, response TEXT NOT NULL, PRIMARY KEY(server_id, operation_id));
"#,
r#"
CREATE TABLE user_post_likes (
post_id INTEGER NOT NULL REFERENCES user_posts(id) ON DELETE CASCADE,
user_uuid TEXT NOT NULL,
PRIMARY KEY (post_id, user_uuid)
);
"#,
];
pub async fn connect(data_dir: &Path) -> Result<SqlitePool> {
@@ -536,6 +543,7 @@ async fn migrate(pool: &SqlitePool) -> Result<()> {
}
backfill_uuids(pool).await?;
crate::seed::seed_quests_and_achievements(pool).await?;
if current < 9 { crate::seed::upgrade_seeded_quest_targets(pool).await?; }
Ok(())
}