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
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
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:


-James
Reply all
Reply to author
Forward
0 new messages