Re: Rename Table limiting the down of the system

2017-03-15 Thread Mike Dewhirst
On 15/03/2017 8:14 PM, Stefano Tranquillini wrote: Thanks, On Wed, Mar 15, 2017 at 9:43 AM, Mike Dewhirst > wrote: On 15/03/2017 7:12 PM, Stefano Tranquillini wrote: Hi people. I've to do a migration for the database, specifically I've to

Re: Rename Table limiting the down of the system

2017-03-15 Thread Stefano Tranquillini
Thanks, On Wed, Mar 15, 2017 at 9:43 AM, Mike Dewhirst wrote: > On 15/03/2017 7:12 PM, Stefano Tranquillini wrote: > >> Hi people. >> >> I've to do a migration for the database, specifically I've to rename a >> table. >> >> To do so I've a RunPython that runs this sql statemnet >> `ALTER TABLE "o

Re: Rename Table limiting the down of the system

2017-03-15 Thread Mike Dewhirst
On 15/03/2017 7:12 PM, Stefano Tranquillini wrote: Hi people. I've to do a migration for the database, specifically I've to rename a table. To do so I've a RunPython that runs this sql statemnet `ALTER TABLE "old_table" RENAME TO "new_table"` First question: should I use https://docs.djangop