Ticket #803 (closed story: invalid)

Opened 3 years ago

Last modified 21 months 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

Description

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

Changed 3 years ago by johnbywater

  • milestone ckan v1.3 deleted

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?

Changed 2 years ago by thejimmyg

  • owner set to thejimmyg
  • priority set to major
  • component set to ckan

Changed 21 months ago by dread

  • repo 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.