Ticket #172 (closed enhancement: fixed)
Send signals indicating change on model
| Reported by: | Robert <trebor74hr@…> | Owned by: | andrew |
|---|---|---|---|
| Priority: | major | Milestone: | 0.7 |
| Component: | migrations | Version: | 0.6-pre |
| Keywords: | Cc: |
Description
Django syncdb sends post-syncdb signal after syncdb. Ticket #171 tries to explain distinction with south post-syncdb (and asks for better documentation).
It would be useful that south sends its own (new) signals indicating that migrate is done, and/or some change on model is done. I suggest at least 2 signals:
- south migration MM on application AA ended (after commit)
- south changed model MD by the migration MM in application AA (after commit)
For initializing creating new table maybe post-syncdb can be (re)used or maybe new one should be defined.
On production system every change to existing model (e.g. alter table, drop column, drop table) is very sensitive operation, and sometimes it needs some post processing. In order to automate this as much as possible, we could use some signals. Then the logic triggered by the signals will be common for all kind of migrations .
Other possible usage is that if someone switched from django.syncdb to south.migrate philosophy then all logic that is connected to processing post-syncdb signal should be rewritten to support south philosophy (see also http://south.aeracode.org/ticket/170#comment:1).
References:
Attachments
Change History
comment:1 Changed 4 years ago by andrew
- Status changed from new to assigned
- Version set to subversion
- Milestone set to 0.6

Yes, I like this idea.