Skip to content

Commit

Permalink
Updated migration to update old data
Browse files Browse the repository at this point in the history
  • Loading branch information
rossjones committed Jan 20, 2012
1 parent cbf2243 commit 57bdf0e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 13 deletions.
2 changes: 1 addition & 1 deletion ckan/logic/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def package_form_schema():
schema['extras_validation'] = [duplicate_extras_key, ignore]
schema['save'] = [ignore]
schema['return_to'] = [ignore]
schema['type'] = [ignore, unicode]
schema['type'] = [ignore_missing, unicode]

##changes
schema.pop("id")
Expand Down
8 changes: 8 additions & 0 deletions ckan/migration/versions/047_rename_package_group_member.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,14 @@ def upgrade(migrate_engine):
ADD COLUMN "type" text;
ALTER TABLE "package_revision"
ADD COLUMN "type" text;
update "package" set type = 'package';
update package_revision set type = 'package';
ALTER TABLE "package"
ADD COLUMN "type" set not null;
ALTER TABLE "package_revision"
ADD COLUMN "type" set not null;
COMMIT;
'''
Expand Down
12 changes: 0 additions & 12 deletions notes.txt

This file was deleted.

0 comments on commit 57bdf0e

Please sign in to comment.