Re: Question on migrations vs postgres database

2020-06-21 Thread Mike Dewhirst
On 22/06/2020 8:04 am, Ram wrote:   self.cursor.execute("DELETE from django_migrations WHERE app = %s", % app) There should not be a comma in that line -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop r

Re: Question on migrations vs postgres database

2020-06-21 Thread Ram
Hi all, Anyone has a clue on this? I appreciate if someone look into this and help us unblocking this? Thanks, ~Ram On Sun, Jun 14, 2020 at 3:23 PM Ram wrote: > Hi, > > I tried replacing square bracket with % and ran this command the result is > returned as follows. Hope I'm not missing anythi

Re: Question on migrations vs postgres database

2020-06-14 Thread Ram
Hi, I tried replacing square bracket with % and ran this command the result is returned as follows. Hope I'm not missing anything. I tried to use app name in the command but the result is same. > > (x) xxxenv@2332333223:~/xxx/xxxv$ python3 manage.py reset_migrations >> Traceback (most recent

Re: Question on migrations vs postgres database

2020-06-12 Thread Integr@te System
Hi Ram, Plz check line #44 in reset_migrations.py try replace square bracket by percent sign. Or check temp file before your actions execute commands migration. Goodluck. On Sat, Jun 13, 2020, 12:31 PM Ram wrote: > Hi, > > We clone our project repository from GIT hub and deployed our web > ap

Question on migrations vs postgres database

2020-06-12 Thread Ram
Hi, We clone our project repository from GIT hub and deployed our web application in our development server in the past. The application was working fine in the past. Now we merged our new features into the same repository which has new models in our models.py. When we merged the changes into the