Migration Rollback does not drop table or database for SQLite3 |
Hi,
I am using codeigniter 4.1.8. I created a migration for SQLite3 Database in which i created the database and a table. When i run the migration, the database and table are created correctly. The problem comes when i rollback. Nothing is rolled back Appreciate help. The following is the migration script: Code: namespace App\Database\Migrations;
You cannot drop database in your migration files.
If it drops database, the migrations table will be lost, and you will see an error.
That's because the migration has its own table in the database if you drop the database that migration table is gone.
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |