From c737595a52f6f0092288b1d8866cdb55b5f1e412 Mon Sep 17 00:00:00 2001 From: Vladimir Zagainov Date: Mon, 5 Jan 2026 18:07:09 +0300 Subject: [PATCH] feat: add async modpack import support --- backend | 2 +- frontend | 2 +- scripts/migrations/003_modpack_import_jobs.sql | 13 +++++++++++++ 3 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 scripts/migrations/003_modpack_import_jobs.sql diff --git a/backend b/backend index 0751ddb..9bf2a15 160000 --- a/backend +++ b/backend @@ -1 +1 @@ -Subproject commit 0751ddb88a256930bfa53f93d2915a7b9eced216 +Subproject commit 9bf2a15045f35d921371567b45dc7827af207adf diff --git a/frontend b/frontend index 4dfecf7..8ba21f9 160000 --- a/frontend +++ b/frontend @@ -1 +1 @@ -Subproject commit 4dfecf7fcf839e7ae428677cb8ff9d0769ed7079 +Subproject commit 8ba21f915f4f4ff16da63de7c29a9c46f9283238 diff --git a/scripts/migrations/003_modpack_import_jobs.sql b/scripts/migrations/003_modpack_import_jobs.sql new file mode 100644 index 0000000..eee7c3a --- /dev/null +++ b/scripts/migrations/003_modpack_import_jobs.sql @@ -0,0 +1,13 @@ +CREATE TABLE modpack_import_jobs ( + id SERIAL PRIMARY KEY, + status VARCHAR(50) NOT NULL DEFAULT 'pending', + progress INT NOT NULL DEFAULT 0, + error_message TEXT, + created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(), + updated_at TIMESTAMPTZ NOT NULL DEFAULT NOW() +); + +CREATE TRIGGER set_timestamp_import_jobs +BEFORE UPDATE ON modpack_import_jobs +FOR EACH ROW +EXECUTE FUNCTION trigger_set_timestamp();