Duke-GCB / bespin-api

Web application for running workflows in the cloud
MIT License
0 stars 2 forks source link

Migrations from PR#194 emptying jobs table #196

Closed johnbradley closed 5 years ago

johnbradley commented 5 years ago

After running the migrations on the dev server there were no jobs. Fix migrations from #194 so the jobs are maintained.

johnbradley commented 5 years ago

I have been unable to reproduce this locally. I added code to the migration tests to verify jobs persisted after running migrations and didn't see this issue. I also tried restoring the database backup locally and running migrations, this also worked fine.

johnbradley commented 5 years ago

I ran djangosqlmigrate command an looked through the SQL created by these migrations. I didn't see anything that should have caused this. I am assuming the root cause was a user command line error related to backing up the dev database. I will backup the prod database and run these migrations and will close this issue once that is succesful.

johnbradley commented 5 years ago

I tested these migrations against a backup of the prod database and all jobs remained.

dleehr commented 5 years ago

Fair to close then?

johnbradley commented 5 years ago

Fair to close then?

Yep.