New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Errors trying to use loadMigrationsFrom and custom migrations at the same time #176
Comments
We already have actual test case testing this, so could you try to replicate the scenario via the available tests? https://github.com/orchestral/testbench/blob/3.4/tests/Databases/MigrateWithRealpathTest.php#L29 |
Oh I see what you mean now, all migration class need to be uniques, you can have |
I think I narrowed down my issue. Even if I removed my own user migration, it fixes the name issue, however a second loadMIgrations type of command (below) resets the db so that only the final one represents the migration (ie: the first one, users, is wiped out).
So I just fixed it eliminating the loadLaravelMigrations and putting my own user one back in. |
|
testbench is what we are using for the default
|
…hat it's can rollback perfectly. #176 Signed-off-by: crynobone <crynobone@gmail.com>
I can't replicate this issue https://travis-ci.org/orchestral/testbench/builds/237741392 |
Signed-off-by: crynobone <crynobone@gmail.com>
so after tinkering around more: This works
This does not
This does not
This issue is caused by the artisan null setting: |
I don't see how this is an issue, you should be using the existing methods. I'm closing this is I already made a test to show that loading Laravel migrations with custom migration works fine on Testbench, you can see the code https://github.com/orchestral/testbench/blob/3.4/tests/Databases/MigrateWithRealpathAndLaravelTest.php If you still think there an issue, commit/send a Pull Request with new failing test so we can move forward. |
okay. i can put one up later today and post a fix. This is the issue: running these two commands back will not work because they include $this->loadLaravelMigrations(['--database' => 'testbench']); |
My app broke after trying to move to 3.4. -- I have zero clue how to load the laravel migrations my migrations at the same time. The samples provided do not give a working example of this.
I am loading a users migration, and several other tables:
This doesn't work, even though I have the exact same user migration that laravel provides
So I add the loadLaravelMigration, and this doesn't work. Gives the error: Cannot declare class CreateUsersTable... -- So I know it's loading the classes, but not executing them.
** So AFTER I remove my own users migration to prevent the conflict it loads the testbench migrations, but not mine. Or maybe it is loading mine, but not executing them.
The text was updated successfully, but these errors were encountered: