Ticket #16 (closed enhancement: fixed)
No way to provide initial data for models
|Reported by:||craig.kimerer@…||Owned by:||andrew|
There is currently no way to import custom SQL like you can with django's default syncdb command.
I currently have:
And I want to set up myapp to use south, but I can't figure out a way other than creating a migration that calls db.execute() per line.
It would be useful to not only be able to import when the database is first created (and the data is migrated as the table is altered (ie defaults go in the columns, etc), or to be able to say the data should be inserted after any(all) of the migrations.
I am more than willing to write this patch, I just want to make sure its a feature that fits with south, and to see if anyone has any suggestions on the correct way to implement this in south (ie is it a new db call... db.importdata('MyModel?.sql'), or does it just automagically look in the sql folder and if something exists it gets imported
- Status changed from assigned to closed
- Resolution set to fixed