diff --git a/URLNotesGrabberCORE/Program.cs b/URLNotesGrabberCORE/Program.cs index f39d6c0..1c81814 100644 --- a/URLNotesGrabberCORE/Program.cs +++ b/URLNotesGrabberCORE/Program.cs @@ -148,6 +148,12 @@ namespace URLNotesGrabberCORE if (args.Length == 0) //Traverse folder structure to add posts and thus blogs to DB { int postsAdded = 0; + // This is the mode that actually gets run day to day, so the schema migration and + // the PostType backfill have to happen here too. They used to hang off --ingest, + // --output and friends only, which meant the untyped rows this traversal creates + // could sit unrepaired indefinitely while the one command everyone runs skipped + // the fix entirely. Idempotent, so paying it on every run costs nothing. + DataAccess.EnsureTTFileHelperColumnsExist(); try { DataAccess.EnableImportModePragmas();