Skip to content

fix(data): use single-column PK for Salaries table#27

Merged
Alanzhoffmann merged 1 commit into
mainfrom
fix/runtime-bugs
Jul 3, 2026
Merged

fix(data): use single-column PK for Salaries table#27
Alanzhoffmann merged 1 commit into
mainfrom
fix/runtime-bugs

Conversation

@Alanzhoffmann

Copy link
Copy Markdown
Owner

SQLite only supports AUTOINCREMENT on single-column INTEGER PRIMARY KEY. Change from composite PK (PersonId, Id) to just Id with a separate FK index on PersonId. This fixes the NOT NULL constraint failed error when saving salaries.

SQLite only supports AUTOINCREMENT on single-column INTEGER
PRIMARY KEY. Change from composite PK (PersonId, Id) to just
Id with a separate FK index on PersonId. This fixes the
NOT NULL constraint failed error when saving salaries.
@Alanzhoffmann
Alanzhoffmann merged commit d746cb0 into main Jul 3, 2026
2 checks passed
@Alanzhoffmann
Alanzhoffmann deleted the fix/runtime-bugs branch July 3, 2026 21:38
@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown

Code Coverage

Package Line Rate Branch Rate Health
FinanceSplit.Api 77% 62%
FinanceSplit.Application 85% 76%
FinanceSplit.Contracts 98% 100%
FinanceSplit.Data 84% 71%
FinanceSplit.Domain 87% 81%
FinanceSplit.Web 31% 32%
Summary 69% (729 / 1063) 59% (291 / 492)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant