From cb9a85e5cf3698f41ba4a18d76d18c2d1ab04db1 Mon Sep 17 00:00:00 2001 From: Christopher <1289128+dragonfire1119@users.noreply.github.com> Date: Sun, 22 Mar 2026 01:26:08 -0500 Subject: [PATCH] =?UTF-8?q?refactor(pterodactyl):=E2=9C=A8=20Remove=20manu?= =?UTF-8?q?al=20migration=20step=20(#76)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove the run_migrations function from the startup script as database migrations are now handled automatically by the application during initialization, simplifying the startup process and reducing redundant operations. --- start-pterodactyl-panel/run.sh | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/start-pterodactyl-panel/run.sh b/start-pterodactyl-panel/run.sh index 10b8822..7120783 100644 --- a/start-pterodactyl-panel/run.sh +++ b/start-pterodactyl-panel/run.sh @@ -18,15 +18,6 @@ generate_key() { log "Key generated successfully." } -run_migrations() { - log "Running database migrations..." - if ! docker exec -i $CONTAINER_ID php artisan migrate --force; then - log "ERROR: Database migrations failed. Aborting." - exit 1 - fi - log "Database migrations completed successfully." -} - optimize_cache() { log "Optimizing Laravel cache..." if ! docker exec -i $CONTAINER_ID php artisan optimize; then @@ -53,7 +44,6 @@ create_user() { main() { log "Starting script..." generate_key - run_migrations optimize_cache prompt_check_login create_user