diff options
| author | matthewmcgarvey <matthewmcgarvey14@gmail.com> | 2022-02-12 09:20:43 -0600 |
|---|---|---|
| committer | matthewmcgarvey <matthewmcgarvey14@gmail.com> | 2022-02-12 09:20:43 -0600 |
| commit | bf054dfda5ac6d1d3c4ab40b44a3bbb45ca132a3 (patch) | |
| tree | 1dd10a1605339eb09d3035fda64e5b25b0bc8ec3 /src/invidious.cr | |
| parent | 59654289cb7c024d3cf7c9d00d38cf4453bc48df (diff) | |
| download | invidious-bf054dfda5ac6d1d3c4ab40b44a3bbb45ca132a3.tar.gz invidious-bf054dfda5ac6d1d3c4ab40b44a3bbb45ca132a3.tar.bz2 invidious-bf054dfda5ac6d1d3c4ab40b44a3bbb45ca132a3.zip | |
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.
Diffstat (limited to 'src/invidious.cr')
| -rw-r--r-- | src/invidious.cr | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/invidious.cr b/src/invidious.cr index 25ee7c78..04b18a65 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -116,11 +116,6 @@ end OUTPUT = 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 integrity Invidious::Database.check_integrity(CONFIG) |
