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

Fix: missing tables in Database::delete_all_database_rows function #220

Merged
merged 2 commits into from
Jun 26, 2023
Merged

Fix: missing tables in Database::delete_all_database_rows function #220

merged 2 commits into from
Jun 26, 2023

Conversation

josecelano
Copy link
Member

Fix the function delete_all_database_rows to delete all tables.

Besides, remove database tests because:

  • They are hard to maintain because of the table's dependencies.
  • They are duplicated in E2E tests. And it's easier to set the state you want to test with E2E tests.

TODO: runt the E2E test using MySQL to ensure queries are OK. Currently, E2E tests are only executed with SQLite.

Because:

- They are hard to maintain because of the table's dependencies.
- They are duplicated in E2E tests. And it's easier to set the state you want to test with E2E tests.

TODO: runt the E2E test using MySQL to ensure queries are OK. Currently, E2E tests are only executed with SQLite.
@josecelano josecelano linked an issue Jun 26, 2023 that may be closed by this pull request
When you upgrade from v1.0.0 to v2.0.0 you can run an upgrader which
will truncate all the tables in the target database. There were some
missing tables in the list. Probably, there wre tables added after
creting the upgrader command.
@josecelano josecelano merged commit f0e28a6 into torrust:develop Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Missing tables in Database::delete_all_database_rows
1 participant