Hangfire icon indicating copy to clipboard operation
Hangfire copied to clipboard

ERROR Primary key missing on table: hangfire.lock when using migration to new PostgreSQL

Open patsevanton opened this issue 7 years ago • 4 comments

Hello, I using Hangfire and try migrate to new PostgreSQL (Using Skytools or Londiste) get this error:

su postgres -c "londiste3 /etc/skytools/londiste-master.ini add-table --all"
2017-10-26 15:34:07,996 4722 INFO Table added: hangfire.counter
2017-10-26 15:34:08,015 4722 INFO Table added: hangfire.hash
2017-10-26 15:34:08,030 4722 INFO Table added: hangfire.job
2017-10-26 15:34:08,039 4722 INFO Table added: hangfire.jobparameter
2017-10-26 15:34:08,048 4722 INFO Table added: hangfire.jobqueue
2017-10-26 15:34:08,056 4722 INFO Table added: hangfire.list
2017-10-26 15:34:08,062 4722 ERROR Primary key missing on table: hangfire.lock

Can i added Primary key to table: hangfire.lock?

patsevanton avatar Oct 26 '17 12:10 patsevanton

What storage provider are you using?

burningice2866 avatar Oct 26 '17 14:10 burningice2866

Hangfire.PostgreSql 1.4.8.1

patsevanton avatar Oct 26 '17 14:10 patsevanton

Try posting your issue here then https://github.com/frankhommers/Hangfire.PostgreSql, you should have a better chance of help going directly to the author.

burningice2866 avatar Oct 26 '17 15:10 burningice2866

Hi @patsevanton, did you manage to add the primary key to the lock table? I have a similar scenario where I'm trying to migrate postgres database on Google Cloud SQL.

FarshanAhamed avatar Jan 07 '22 13:01 FarshanAhamed