-
Notifications
You must be signed in to change notification settings - Fork 34
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
Some errors + CI fails on Laravel 11.15 #85
Comments
Overridden |
Fixing this to work with all versions will again be tricky. I'll work on this on Monday. |
I've fixed the CI issues with the newest Laravel 11.x release in But your initial issues of the column already existing should be an issue because of breaking change with Laravel 11.15.x behaviour. The issue should also exist when removing my package. From my understanding you need to reorder the schema changes in your migration. |
Hi @tpetry, the problem is actually on the overriden |
@damiencriado Can you check whether the issue remains/disappears when removing my package? |
Reproducing: try to add / change 2 columns: Schema::table('table', static function (Blueprint $table) {
$table->string('column_one');
$table->string('column_two');
}); |
The example by hafezdivandari shows that indeed the current version is broken because of behavioural bc break in Laravel. |
Hi @tpetry ! I still have errors in my CI with 0.40.1 :( SQLSTATE[42701]: Duplicate column: 7 ERROR: column "my_column" of relation "my_table" already exists And yes, the error is only present with the package. |
Yeah, I have now a working test case that is failing only in that specific version. Working on a fix based on the PR from @hafezdivandari. |
Its now finally fixed with |
I've encountered an issue with the latest version of Laravel (11.15) during migrations.
The CI now fails on the latest version of Laravel: https://github.com/damiencriado/laravel-postgresql-enhanced/actions/runs/9915497290
Maybe it has something to do with this change: laravel/framework#51373
Please let me know if you need any further information to diagnose this issue.
The text was updated successfully, but these errors were encountered: