From 1aa0f31af2367b0d976973c3701bbd14535d0380 Mon Sep 17 00:00:00 2001 From: infosave2007 Date: Sat, 8 Nov 2025 17:00:02 +0300 Subject: [PATCH] fix: Simplify query for checking applied migrations in update script --- update.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/update.sh b/update.sh index 4b40440..c996557 100755 --- a/update.sh +++ b/update.sh @@ -139,10 +139,7 @@ EOF FILENAME=$(basename "$migration") # Check if already applied - ALREADY_APPLIED=$($DOCKER_COMPOSE exec -T db mysql -uroot -p$DB_ROOT_PASS amnezia_panel -sN 2>/dev/null </dev/null || echo "0") if [ "$ALREADY_APPLIED" = "0" ] || [ -z "$ALREADY_APPLIED" ]; then echo " Applying: $FILENAME"