So it seems SQLite does not support dropping column. I have dropped/re-added columns over the time I build my application. I changed my database to. So right now, in my migration folder, there are folders that use $table->dropColumn('someColumn')
. When I use SQLite
, I get an error on that line (which was explained in the link above).
This tells me that I cannot use SQLite. So I decided to use MySQL:
<?php
return [
'fetch' => PDO::FETCH_CLASS,
'default' => 'mysql',
'connections' => [
'mysql' => [
'driver' => 'mysql',
'database' => ':memory:',
'prefix' => '',
]
]
];
But I get an error: PDOException: SQLSTATE[HY000] [2002] No such file or directory
What connection should I then use for my unit testing?