You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#107 added support for custom postgres types. The problem is the type is added outside of the normal migration, which is a problem if said column is also in an index on the table
To Reproduce
Create table with column that is a type, but which also has an index on that column
Generate migrations
This will create a migration ala
public function up()
{
Schema::create('table', function (Blueprint $table) {
...
$table->index(['column']);
});
DB::statement("ALTER TABLE table ADD column custom_type NOT NULL");
}
Which will fail since column is not defined when the index is added
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Details (please complete the following information):
DB: Postgresql
DB Version: 10+
Laravel Version: 10
PHP Version: 8.3
Migrations Generator Version: 6.11
Doctrine DBAL Version [composer info doctrine/dbal | grep versions]: 3.7.2
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
#107 added support for custom postgres types. The problem is the type is added outside of the normal migration, which is a problem if said column is also in an index on the table
To Reproduce
This will create a migration ala
Which will fail since
column
is not defined when the index is addedExpected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Details (please complete the following information):
composer info doctrine/dbal | grep versions
]: 3.7.2Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: