laravel-countries icon indicating copy to clipboard operation
laravel-countries copied to clipboard

SQLite databases can not run the migrations

Open bfiessinger opened this issue 1 year ago • 0 comments

As per https://www.techonthenet.com/sqlite/tables/alter_table.php#:~:text=You%20can%20not%20use%20the,data%20into%20the%20new%20table. SQLite Databases lack the support of using statements like ALTER TABLE therefore it is not possible to run the ``{date}_charify_countries_table` migrations on these setups.

Who even uses SQLite you may ask. Well if you think of automated tests it can be quite helpful to quickly setup a database using SQLite.

Using this PR the changes can be adapted even in such setups.

bfiessinger avatar Apr 27 '23 11:04 bfiessinger