You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Database migration runs successfully but they do not create the required columns. Running datapusher-plus will raise an error: column "job_key" of relation "jobs" does not exist
To Reproduce
Steps to reproduce the behavior:
Have an instance with ckanext-xloader running
Disable ckanext-xloader
Install and enable datapusher-plus
Run datapusher-plus database migrations (ckan datapusher init-db and ckan db upgrade -p datapusher_plus)
Try to push data to the datastore
Expected behavior
Running database migrations will successfully create the database tables or raise an error if conflicting tables already exist. (Maybe this is a error in CKAN)
Additional context
So I have an instance with ckanext-xloader running and I'm migrating to datapusher-plus. Deactivating ckanext-xloader left the jobs table in the database. This is causing some inconsistent behaviour in CKAN since when I'm executing ckan datapusher init-db I have a Success confirmation message but the table is not created. I only have a leftover of the jobs table that ckanext-xloader created.
As I mention, this is probably an error in CKAN, but I wanted to create an issue here since it may happen to other users trying to migrate to datapusher-plus.
The text was updated successfully, but these errors were encountered:
pdelboca
changed the title
Issue when migrating from ckanext-xloader
Issue when migrating from ckanext-xloader: column "job_key" of relation "jobs" does not exist
Jul 3, 2024
@tino097@jqnatividad I'm wondering if this is something you would like to handle in a database migration (like you have for checking aps_jobs_id and logs.id) or if this should be handled by a migration on the project dealing with this.
Thanks for the detailed report @pdelboca . We will handle this in the migration scripts - so folks can have a path from both loader and the legacy datapusher.
Now that the migration to an extension is largely done thanks to @tino097 , I can start catching up the Analysis part of DP+ for which we've been building a lot of features into qsv.
Describe the bug
Database migration runs successfully but they do not create the required columns. Running
datapusher-plus
will raise an error:column "job_key" of relation "jobs" does not exist
To Reproduce
Steps to reproduce the behavior:
ckanext-xloader
runningckanext-xloader
datapusher-plus
datapusher-plus
database migrations (ckan datapusher init-db
andckan db upgrade -p datapusher_plus
)Expected behavior
Running database migrations will successfully create the database tables or raise an error if conflicting tables already exist. (Maybe this is a error in CKAN)
Additional context
So I have an instance with
ckanext-xloader
running and I'm migrating todatapusher-plus
. Deactivatingckanext-xloader
left thejobs
table in the database. This is causing some inconsistent behaviour in CKAN since when I'm executingckan datapusher init-db
I have a Success confirmation message but the table is not created. I only have a leftover of the jobs table thatckanext-xloader
created.As I mention, this is probably an error in CKAN, but I wanted to create an issue here since it may happen to other users trying to migrate to
datapusher-plus
.The text was updated successfully, but these errors were encountered: