question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to migrate DB after create

See original GitHub issue

I’m trying to stand this up locally and everything is good until I get to the DB migrate step. I have my environmental variables set up in my ~/.bash_profile

I’ve tried making the postgresql database on my own and following the Docker instructions found here: https://github.com/hotosm/tasking-manager/wiki/Dev-Ops#creating-a-local-postgis-database-with-docker

The database is created in both instances but when I run the update I get the following error complaining column "tsv" of relation "project_info" does not exist

I’m assuming this is because the db is empty and doesn’t have the schema required by tasking-manager.

Is this a correct assumption? How do I init the schema to the db?

I apologize if this is already answered, I couldn’t find an existing issue or anything in the README.md

Thanks!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
olearytdcommented, Jul 21, 2017

Thanks for the replies all!

I will double check my commit and try again

0reactions
mathcasscommented, Jul 24, 2017

No problem @olearytd. 😃 Always happy to rubber duck an issue with someone.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't migrate db rails, getting an error - Stack Overflow
If a column exists in your schema but a migration is failing because it's not found, you may be in an inconsistent database...
Read more >
Troubleshooting migration tasks in AWS Database Migration ...
The most common reason for a migration task running slowly is that there are inadequate resources allocated to the AWS DMS replication instance....
Read more >
Prisma Migrate: Error creating shadow database #4571 - GitHub
Problem. Users run into this issue if their database user has no privileges to create databases (MySQL / Postgres). This happens because Migrate...
Read more >
Migration troubleshooting in development - Prisma
This guide describes how to resolve issues with Prisma Migrate in a development environment, which often involves resetting your database.
Read more >
Common issues - Azure Database Migration Service
Learn about how to troubleshoot common known issues/errors associated with using Azure Database Migration Service.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found