Chapter 9, no userID

I’m not sure if reverting is the problem but when I run it I only get the output:

$ vapor cloud run “revert --all --yes --app”
app: Things I Learned
env: production
Running ‘.build/release/Run --env=production revert --all --yes’

Then, after running the deployment again and posting, I get an error for no userID:
ERROR: column "userID" of relation "acronyms" does not exist

I’ve gone over the code and it doesn’t look like I missed anything…

@0xtim Can you please help with this when you get a chance? Thank you - much appreciated! :]

@burstrom this is because the revert failed. This is a known issue and should be fixed with a memory improvement in Vapor Cloud. Basically the current free container is too close to the memory limit, so when you run the revert it takes up too much memory and fails. A change in the Vapor Cloud container is coming which reduces the memory footprint. If you try deploying again and then reverting again in a couple of days this issue should be fixed.

The workaround for now is to delete the database from the dashboard in Vapor Cloud and create a new one when you deploy.

Makes sense, thank you!

Just an FYI a fix in Vapor Cloud has been pushed - if you deploy you’ll get the new low-memory container which should avoid these issues