Summary
Support tables whose primary key contains more than one column.
Current behavior
Columns contain an individual primary_key boolean.
The MySQL generator stops after finding the first primary-key column and emits only that column in the table primary key.
Expected behavior
All columns marked as part of the primary key must be emitted in declaration order.
Invalid primary-key combinations must be rejected.
Scope
Suggested files
modules/db/src/mig/sql/MySqlGenerator.cpp
modules/db/src/mig/sql/SQLiteGenerator.cpp
modules/db/tests/mysql_generator_test.cpp
modules/db/tests/schema_validation_test.cpp
Acceptance criteria
Non-goals
This issue does not include:
- changing primary keys on existing tables;
- ORM composite identifiers;
- foreign keys;
- generated key objects.
Suggested labels
scope:db
type:feature
tests
good first issue
status:ready
Summary
Support tables whose primary key contains more than one column.
Current behavior
Columns contain an individual
primary_keyboolean.The MySQL generator stops after finding the first primary-key column and emits only that column in the table primary key.
Expected behavior
All columns marked as part of the primary key must be emitted in declaration order.
Invalid primary-key combinations must be rejected.
Scope
Suggested files
modules/db/src/mig/sql/MySqlGenerator.cppmodules/db/src/mig/sql/SQLiteGenerator.cppmodules/db/tests/mysql_generator_test.cppmodules/db/tests/schema_validation_test.cppAcceptance criteria
Non-goals
This issue does not include:
Suggested labels
scope:dbtype:featuretestsgood first issuestatus:ready