Organize DB Schema Migration Code and DB Init Checks (#842)

Create Schema Manager and propagate contexts into the DB calls downstream.
Add checks at controller startup and database init for correct schema version and schema migration dirty bit being set.
This commit is contained in:
Todd Knight authored and GitHub committed 2021-01-19 10:40:41 -07:00
1 parent c141a050e5
commit ec6151d174
83 files changed
+2425 -1176

No files matched your search

+10
View File
@@ -162,6 +162,16 @@ func TestCode_Both_String_Info(t *testing.T) {
c: MissingTable,
want: MissingTable,
},
{
name: "MigrationIntegrity",
c: MigrationIntegrity,
want: MigrationIntegrity,
},
{
name: "MigrationLock",
c: MigrationLock,
want: MigrationLock,
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {