Invidious is an alternative front-end to YouTube
Do not check for pending migrations on app start This is so that we don't break deploys with this PR. Instead we only ship the 'invidious --migrate' cli command and let people test that. Maybe even ship a new migration that wouldn't break apps that don't run the migrations. Then we roll out the functionality that requires migrations.
matthewmcgarveybf054dfda5ac
diff --git a/src/invidious.cr b/src/invidious.crindex 25ee7c78..04b18a65 100644--- a/src/invidious.cr+++ b/src/invidious.cr@@ -116,11 +116,6 @@ endOUTPUT = CONFIG.output.upcase == "STDOUT" ? STDOUT : File.open(CONFIG.output, mode: "a")LOGGER = Invidious::LogHandler.new(OUTPUT, CONFIG.log_level)-# Run migrations-if Invidious::Database::Migrator.new(PG_DB).pending_migrations?- puts "There are pending migrations. Run `invidious --migrate` to apply the migrations."- exit 46-end# Check table integrityInvidious::Database.check_integrity(CONFIG)