mirror of
https://gitea.invidious.io/iv-org/invidious.git
synced 2024-08-15 00:53:41 +00:00
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.
This commit is contained in:
parent
59654289cb
commit
bf054dfda5
1 changed files with 0 additions and 5 deletions
|
@ -116,11 +116,6 @@ end
|
||||||
OUTPUT = CONFIG.output.upcase == "STDOUT" ? STDOUT : File.open(CONFIG.output, mode: "a")
|
OUTPUT = CONFIG.output.upcase == "STDOUT" ? STDOUT : File.open(CONFIG.output, mode: "a")
|
||||||
LOGGER = Invidious::LogHandler.new(OUTPUT, CONFIG.log_level)
|
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 integrity
|
# Check table integrity
|
||||||
Invidious::Database.check_integrity(CONFIG)
|
Invidious::Database.check_integrity(CONFIG)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue