Skip to content

Commit bf054df

Browse files
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.
1 parent 5965428 commit bf054df

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/invidious.cr

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,6 @@ end
116116
OUTPUT = CONFIG.output.upcase == "STDOUT" ? STDOUT : File.open(CONFIG.output, mode: "a")
117117
LOGGER = Invidious::LogHandler.new(OUTPUT, CONFIG.log_level)
118118

119-
# Run migrations
120-
if Invidious::Database::Migrator.new(PG_DB).pending_migrations?
121-
puts "There are pending migrations. Run `invidious --migrate` to apply the migrations."
122-
exit 46
123-
end
124119
# Check table integrity
125120
Invidious::Database.check_integrity(CONFIG)
126121

0 commit comments

Comments
 (0)