BlueprintFramework / framework

Powerful, fast and developer-friendly extension framework for Pterodactyl. Utilize extension APIs, inject HTML, modify stylesheets, package extensions and so much more.
https://blueprint.zip
MIT License
217 stars 23 forks source link

Database Migrations broken #52

Closed 0x7d8 closed 1 month ago

0x7d8 commented 1 month ago

Current Behavior

when installing extension, the migration files get copied but php artisan migrate --force never gets ran

Expected Behavior

php artisan migrate --force gets ran after finishing all extensions

Steps to Reproduce

Install any extension with migrations defined

Blueprint Version

beta-2024-07

Panel Version

1.11.7

Is there an existing issue for this?

prplwtf commented 1 month ago

The following if statement checks for database migrations from a local variable, of which it does not have access to. This small oversight results in database migrations never being ran.

https://github.com/BlueprintFramework/framework/blob/0bab40b248e871132e357927ac04db8272b5b362/scripts/commands/extensions/install.sh#L1301-L1309

prplwtf commented 1 month ago

Fixed in https://github.com/BlueprintFramework/framework/commit/644ab3e424bcae7ea48b61fa2dbe80a80ed0e137.