Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cli): always set head using the up/down cli commands #105

Merged
merged 1 commit into from
Jun 18, 2018

Conversation

eseliger
Copy link
Collaborator

Fixes an error where using the up command caused an error because head has not set

@codecov
Copy link

codecov bot commented Jun 18, 2018

Codecov Report

Merging #105 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #105   +/-   ##
=======================================
  Coverage   99.78%   99.78%           
=======================================
  Files           5        5           
  Lines         460      460           
  Branches       79       79           
=======================================
  Hits          459      459           
  Misses          1        1
Impacted Files Coverage Δ
src/index.ts 99.28% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a1f3f65...e93adf4. Read the comment docs.

src/cli.ts Outdated
@@ -363,7 +363,11 @@ const migrationCommand = (type: TaskType) => async (argv: MigrationCommandArgv)
await adapter.init()
const tasks = argv.migrations!.map(name => new Task({ type, migration: new Migration(name) }))
while (true) {
await adapter.waitForPending(CLI_LOGGER)
if (await adapter.waitForPending(CLI_LOGGER)) {
process.stdout.write('The migrations have changed, reloading..\n\n')
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this say something like "Pending migrations"?

@eseliger eseliger merged commit 6a31c32 into master Jun 18, 2018
@eseliger eseliger deleted the fix-migration-command branch June 18, 2018 05:14
@felixfbecker
Copy link
Owner

🎉 This PR is included in version 0.1.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants