Re-runnable sql scripts in the migrations framework
11 views
Skip to first unread message
Chris Wedgwood
unread,
Nov 2, 2017, 7:02:43 AM11/2/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django...@googlegroups.com
Hi
As part of my deployment process I want to be able to have some db
scripts that are re-runnable
For example I have some internal configuration tables that I would
like to be able to change values with a merge statement in the same
file but not have to create a new migration file
I suppose my question is does the migration framework allow for re-runnables?
If not can anyone recommend a good approach for this?
thanks
Chris
James Schneider
unread,
Nov 2, 2017, 11:12:59 AM11/2/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django...@googlegroups.com
I have no idea what you are actually trying to achieve, but it sounds like a custom management command may be able to get you there: