From cca554c5ec59b7ef0505b234f7395ccdfb3db6ec Mon Sep 17 00:00:00 2001 From: amercader Date: Tue, 5 Feb 2013 12:33:56 +0000 Subject: [PATCH] Fix typo and add missing column on v3 migration script --- ckanext/harvest/model/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ckanext/harvest/model/__init__.py b/ckanext/harvest/model/__init__.py index e62c68d..0133cf7 100644 --- a/ckanext/harvest/model/__init__.py +++ b/ckanext/harvest/model/__init__.py @@ -364,7 +364,7 @@ def migrate_v3(): ALTER TABLE harvest_object ADD COLUMN import_started timestamp without time zone, ADD COLUMN import_finished timestamp without time zone, - ADD COLUMN "state" text; + ADD COLUMN "state" text, ADD COLUMN "report_status" text; ALTER TABLE harvest_source @@ -385,6 +385,10 @@ UPDATE harvest_source set frequency = 'MANUAL'; ALTER TABLE harvest_object DROP CONSTRAINT harvest_object_package_id_fkey; ALTER TABLE harvest_object ADD CONSTRAINT harvest_object_package_id_fkey FOREIGN KEY (package_id) REFERENCES package(id) DEFERRABLE; + +ALTER TABLE harvest_object_error + ADD COLUMN line integer; + """ conn.execute(statement) Session.commit()