From 3a356b3165dadb78c0b56178fc3b0ebfb66bdf5c Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Mon, 27 Apr 2026 08:52:19 +0200 Subject: [PATCH] fix(dawarich): run db:migrate before assets:precompile In Rails production, eager loading during assets:precompile can execute DB queries. Dawarich 1.7.0 adds new tables (monthly digest email preferences, S3 storage settings). Running precompile before migrate causes 'Operation not permitted' / exit code 1 when those tables do not exist yet. Reordered to: db:migrate -> assets:precompile -> data:migrate, which is the correct Rails deployment sequence. Fixes #14048 --- ct/dawarich.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ct/dawarich.sh b/ct/dawarich.sh index d2d260998..ee1cffeba 100644 --- a/ct/dawarich.sh +++ b/ct/dawarich.sh @@ -67,8 +67,8 @@ function update_script() { $STD npm install fi - $STD bundle exec rake assets:precompile $STD bundle exec rails db:migrate + $STD bundle exec rake assets:precompile $STD bundle exec rake data:migrate msg_ok "Ran Migrations"