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
This backports several important bug fixes from recent 5.x PRs:
**From PR #1001 (Fix release readiness issues for 5.x):**
- Fix copy-paste bug in Migrator::shouldDropTables() using $messages['down']
instead of $messages['missing']
- Fix uninitialized $command property in Migrations.php
- Fix weak equality in Table::saveData() (use !== instead of !=)
- Replace assert() with explicit RuntimeException in BaseSeed for
production safety
- Fix DumpCommand using non-existent $io->error() method (should be $io->err())
- Replace unsafe addslashes() with proper driver escaping (schemaValue())
for column comments in MysqlAdapter::getRenameColumnInstructions()
**From PR #1002 (Quote database names in PostgreSQL and SQL Server adapters):**
- PostgresAdapter: Quote database name and charset in createDatabase()
- PostgresAdapter: Quote database name in dropDatabase()
- SqlserverAdapter: Use quoteSchemaName() instead of manual brackets in
createDatabase() and dropDatabase()
- SqlserverAdapter: Fix SQL injection vulnerability in dropDatabase()
**From PR #1003 (Improve SQL quoting and fix docblock issues):**
- SqlserverAdapter: Use quoteString() for sp_rename parameters in
getRenameTableInstructions() and getRenameColumnInstructions()
- PostgresAdapter/SqlserverAdapter: Use quoteColumnName() for foreign key
column definitions instead of hard-coded double quotes
0 commit comments