Describe the bug
As discovered in #2876, when working on multiple apps migration scripts may run against the wrong Lucee instance. This could result in writes going to the wrong database.
To Reproduce
Steps to reproduce the behavior:
wheels new test_app_a
wheels new test_app_b
cd test_app_a
wheels start
cd ../test_app_b
wheels generate scaffold Post title body:text publishedAt:datetime --belongsTo=author
wheels migrate latest
- See that test_app_b has now run its migration against test_app_a's Lucee instance
Expected behavior
wheels migrate should refuse to run, and provide an appropriate error, if the project's associated server is not active. It should not run against another project's server.
Desktop
- OS: Ubuntu 26.04 LTS
- Version 4.0.2
Additional context
In my case, I was working on an app with a PostgreSQL backend. Without stopping that app's server, I created a second app to test some Wheels behavior. The second app was created with default settings, which created a SQLite database. Running a wheels migrate latest in the second app's directory without starting that app's server resulted in an error mentioning PostgreSQL.
Describe the bug
As discovered in #2876, when working on multiple apps migration scripts may run against the wrong Lucee instance. This could result in writes going to the wrong database.
To Reproduce
Steps to reproduce the behavior:
wheels new test_app_awheels new test_app_bcd test_app_awheels startcd ../test_app_bwheels generate scaffold Post title body:text publishedAt:datetime --belongsTo=authorwheels migrate latestExpected behavior
wheels migrateshould refuse to run, and provide an appropriate error, if the project's associated server is not active. It should not run against another project's server.Desktop
Additional context
In my case, I was working on an app with a PostgreSQL backend. Without stopping that app's server, I created a second app to test some Wheels behavior. The second app was created with default settings, which created a SQLite database. Running a
wheels migrate latestin the second app's directory without starting that app's server resulted in an error mentioning PostgreSQL.