Skip to content

Commit

Permalink
Rename migration to better reflect its purpose
Browse files Browse the repository at this point in the history
  • Loading branch information
David Read committed Aug 10, 2018
1 parent 3e4a149 commit 9b8ee18
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Expand Up @@ -72,6 +72,7 @@ def migrate_dataset(dataset_name):
print(u' No activities')

context[u'for_view'] = False
# Iterate over this package's existing activity stream objects
for i, activity in enumerate(package_activity_stream):
# e.g. activity =
# {'activity_type': u'changed package',
Expand Down
12 changes: 6 additions & 6 deletions ckan/migration/versions/088_revisions_to_activities.py
Expand Up @@ -15,14 +15,14 @@ def upgrade(migrate_engine):
if num_unmigrated:
print('''
!!! NOTICE !!!
You should run the migrate_revisions.py script to fully populate the dataset
dicts in the Activity Stream that admins can see. This can take a while but can
be run safely while CKAN is live, which is why this is not done automatically
as part of this 'paster db upgrade'.
You should run the migrate_package_activity.py script to fully populate the
dataset dicts in the Activity Stream that admins can see. This can take a while
but can be run safely while CKAN is live, which is why this is not done
automatically as part of this 'paster db upgrade'.
Run migrate_revisions.py like this:
Run migrate_package_activity.py like this:
python ckan/migration/migrate_revisions.py -c /etc/ckan/production.ini
python ckan/migration/migrate_package_activity.py -c /etc/ckan/production.ini
NB This notice will not display again
''')

0 comments on commit 9b8ee18

Please sign in to comment.