Summary
Add automated tests for the schema diff engine and MySQL migration SQL generator.
Generated migration operations and SQL must be deterministic and reversible.
Current behavior
The diff engine currently supports:
- table creation;
- table removal;
- column addition;
- column removal;
- index creation;
- index removal.
The MySQL generator produces up and down SQL scripts for these operations.
No automated tests currently protect the generated output.
Expected behavior
Tests must compare migration operations and generated SQL against reviewed expected output.
Scope
Suggested files
modules/db/tests/migration_diff_test.cpp
modules/db/tests/mysql_generator_test.cpp
modules/db/tests/golden/...
Acceptance criteria
Non-goals
This issue does not include:
- altered-column detection;
- renamed-column detection;
- SQLite SQL generation;
- PostgreSQL SQL generation;
- foreign-key generation.
Suggested labels
scope:db
type:ci
tests
help wanted
status:ready
Summary
Add automated tests for the schema diff engine and MySQL migration SQL generator.
Generated migration operations and SQL must be deterministic and reversible.
Current behavior
The diff engine currently supports:
The MySQL generator produces up and down SQL scripts for these operations.
No automated tests currently protect the generated output.
Expected behavior
Tests must compare migration operations and generated SQL against reviewed expected output.
Scope
Suggested files
modules/db/tests/migration_diff_test.cppmodules/db/tests/mysql_generator_test.cppmodules/db/tests/golden/...Acceptance criteria
Non-goals
This issue does not include:
Suggested labels
scope:dbtype:citestshelp wantedstatus:ready