-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
Altering an SQLite table with a foreign key constraint fails #43587
Comments
Please report this on the Doctrine repo that generates the SQL. |
@driesvints Is this a known issue or are you just certain that fault lies with that package? I was reporting it here because it's a required dependency for |
We don't generate the SQL. So if the SQL is incorrectly generated it's happening in doctrine/dbal and not in Laravel. |
@driesvints That would be assuming that methods haven't been removed and that they haven't had their definitions changed, etc... but sure, if you're certain that the fault lies with that package then why are you asking me to report the bug for you? This isn't exactly an uncommon use-case, this issue exists with any new Laravel install following your documentation. |
Associated issue: doctrine/dbal#5572 |
It appears that this was an issue previously #34093 |
Description:
This issue appears to only occur when using
doctrine/dbal:^3.4
.Invalid SQL is generated when altering a column if the table has a foreign key constraint.
Steps To Reproduce:
Create a migration with the following contents and attempt to execute it using the SQLite driver:
See https://github.com/workhouse-advertising/laravel-sqlite-bug for an example.
The text was updated successfully, but these errors were encountered: