-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
[Bug]: Migrate from sql dump file fails (Laravel squashed migration import) #8
Comments
Hi @BrandonDR ! Are you importing an existing SQLite database into a remote Turso database? It's best to use the Turso CLI for this. Reference: |
Thanks @richan-fongdasen yeah that does work. I was just experimenting, I have a local sqlite database for unit tests. I was trying to import the dump in the same way. This is not a big deal I can work around it. Great work on this package by the way! |
Glad to hear the CLI method works for you, @BrandonDR! For testing, you can use database migrations and seeding like you normally would in a Laravel application. You can also use the Turso local development server for testing. References:
I appreciate the feedback! It's great to hear how people are using this package. Let me know if you have any other questions. |
What happened?
I tried testing importing from an sql dump using Laravel's squash migrations feature.
https://laravel.com/docs/11.x/migrations#squashing-migrations
I get this error:
How to reproduce the bug
Create a
database/schema/turso-schema.sql
file with a simple CREATE TABLE statement.Run
artisan migrate:fresh
with Turso as the database driver.Output from
php artisan migrate:fresh
Package Version
0.7.0
PHP Version
8.3
Laravel Version
11.6.0
Which operating systems does with happen with?
Linux
Notes
No response
The text was updated successfully, but these errors were encountered: