Ticket #803 (closed story: invalid)

Opened 3 years ago

Last modified 3 years ago

Auto-generate next migration version unit and test stub files

Reported by: johnbywater Owned by: thejimmyg
Priority: major Milestone:
Component: ckan Keywords:
Cc: Repository: ckan
Theme: none


As a system developer, I want to run 'create next migration version' script, so that I don't have to create migration version tests and files manually.

Change History

comment:1 Changed 3 years ago by johnbywater

  • Milestone ckan v1.3 deleted

comment:2 Changed 3 years ago by dread

I'm not sure a template is needed for the test script - surely repeated stuff can just be factored out?

Creating the model dump file:

  • 'hg up' to ckan as it was at the last model migration
  • 'paster db clean', 'paster db init', 'paster create-test-data'
  • 'pgdump'
  • 'hg up default'
  • Check in the dumped file

Do we really want a script to mess with our repo like this? Isn't it just safer to do manually with good instructions?

comment:3 Changed 3 years ago by thejimmyg

  • Owner set to thejimmyg
  • Priority set to major
  • Component set to ckan

comment:4 Changed 3 years ago by dread

  • Repository set to ckan
  • Status changed from new to closed
  • Theme set to none
  • Resolution set to invalid

We now use nose to test migrations instead.

Note: See TracTickets for help on using tickets.