Skip to content

Conversation

@nickvergessen
Copy link
Member

Fix nextcloud/spreed#714

Steps

  1. Install with SQLite
  2. Enable Talk
  3. Migrate to MySQL
  4. 💥

The problem is that migrations are given the schema of the new Database, but teh database connection of the old one. It does also not make sense to execute the before/after steps in this case, because there is no data which you should be able to modify. We are just creating the structure at this point and afterwards all content is copied over.

Signed-off-by: Joas Schilling <coding@schilljs.com>
Copy link
Member

@MorrisJobke MorrisJobke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and works - also migrations on one DB work just fine 👍

@MorrisJobke MorrisJobke merged commit 7da815b into master Jul 24, 2018
@MorrisJobke MorrisJobke deleted the bugfix/talk-714/only-migrate-the-schema-when-moving-database branch July 24, 2018 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants