Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.5] fix migrate:fresh for sqlite #19644

Merged
merged 1 commit into from
Jun 16, 2017
Merged

[5.5] fix migrate:fresh for sqlite #19644

merged 1 commit into from
Jun 16, 2017

Conversation

themsaid
Copy link
Member

As reported in #19634

migrate:fresh doesn't seem to work in sqlite, the first step of deleting all tables appear to work but running the migrate command later shows:

table "migrations" already exists

However if you run migrate:fresh again it'll work, so for some reason it doesn't work in one go!

In this PR I replace the code for deleting all tables with a code that deletes the database file and recreates it. Not sure if it's the best solution though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants