Skip to content

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