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
Which operating systems have you tested for this bug?
Windows
Which server did you use?
apache
Database
SQLite and others
What happened?
When creating a table with the optional parameter IF NOT EXISTS the execution fails if the table already exists and there are indexes to be created as well. If fails for the databases that create the indexes after the table creation command.
Steps to Reproduce
Run the following on SQLite, Postgre, SQLSRV and maybe others:
kenjis
changed the title
Bug: $forge->createTable('table', true); Fails when table has indexes
Bug: $forge->createTable('table', true) fails when table has indexes
Jul 11, 2022
PHP Version
8.0
CodeIgniter4 Version
4.2.1
CodeIgniter4 Installation Method
Git
Which operating systems have you tested for this bug?
Windows
Which server did you use?
apache
Database
SQLite and others
What happened?
When creating a table with the optional parameter IF NOT EXISTS the execution fails if the table already exists and there are indexes to be created as well. If fails for the databases that create the indexes after the table creation command.
Steps to Reproduce
Run the following on SQLite, Postgre, SQLSRV and maybe others:
An error is thrown: SQLite3::exec(): index db_user_email already exists
Expected Output
Expected that table will be created if it doesn't exist and if it does exists nothing will change and no errors will be thrown.
Anything else?
No response
The text was updated successfully, but these errors were encountered: