Re: revert database migration

2008-03-04 Thread stranger

Thank you... for the help I started using the django evolution its
fine...

On Mar 4, 3:24 am, "Ramiro Morales" <[EMAIL PROTECTED]> wrote:
> On Tue, Mar 4, 2008 at 2:58 AM, stranger <[EMAIL PROTECTED]> wrote:
> > After searching this group archive i didnot find much regarding my question
>
> Really?
>
> http://groups.google.com/group/django-users/search?hl=en&q=migrations...
>
> There is a difference between searching the archives to find the answer
> and searching it trying to find the answer one expects :)
>
> On Tue, Mar 4, 2008 at 3:04 AM, stranger <[EMAIL PROTECTED]> wrote:
> >  It is very sad that django donot track models. I migrated myself from
> >  Rails. In rails there is migration where we can make changes to models
> >  and sync with database. hope django will find a solution.
>
> http://www.djangoproject.com/documentation/faq/#if-i-make-changes-to-...
>
> Take a loo to third party efforts in this regard:
>
> http://code.google.com/p/deseb/http://code.google.com/p/django-evolution/http://www.aswmc.com/dbmigration/http://code.google.com/p/django-schemaevolution/
>
> --
>  Ramiro Morales
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: revert database migration

2008-03-04 Thread Ramiro Morales

On Tue, Mar 4, 2008 at 2:58 AM, stranger <[EMAIL PROTECTED]> wrote:
> After searching this group archive i didnot find much regarding my question

Really?

http://groups.google.com/group/django-users/search?hl=en&q=migrations&start=0&scoring=d&hl=en&;

There is a difference between searching the archives to find the answer
and searching it trying to find the answer one expects :)

On Tue, Mar 4, 2008 at 3:04 AM, stranger <[EMAIL PROTECTED]> wrote:
>  It is very sad that django donot track models. I migrated myself from
>  Rails. In rails there is migration where we can make changes to models
>  and sync with database. hope django will find a solution.
>

http://www.djangoproject.com/documentation/faq/#if-i-make-changes-to-a-model-how-do-i-update-the-database

Take a loo to third party efforts in this regard:

http://code.google.com/p/deseb/
http://code.google.com/p/django-evolution/
http://www.aswmc.com/dbmigration/
http://code.google.com/p/django-schemaevolution/

-- 
 Ramiro Morales

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: revert database migration

2008-03-03 Thread stranger

Ok thank you found the answer. "Django will look for any new models
that
have been defined, and add a database table to represent those new
models." So how about the django evolution. Is it fine to use it to
track changes in django models and make database migrations.

It is very sad that django donot track models. I migrated myself from
Rails. In rails there is migration where we can make changes to models
and sync with database. hope django will find a solution.



On Mar 3, 8:58 pm, stranger <[EMAIL PROTECTED]> wrote:
> Hi James,
>
>          I have been following you blog for a very long time. Good
> posts. Awaiting you django projects book t... After searching this
> group archive i didnot find much regarding my question? I think django
> should automatically make the changes in the model. I have added a new
> model photo and the syncdb only synced the photo model but not the
> changes in the Post model. Can you suggest me if there is a way I can
> sync it or do I have to do manual SQl query.
>
> On Mar 2, 11:15 pm, "James Bennett" <[EMAIL PROTECTED]> wrote:
>
> > On Sun, Mar 2, 2008 at 11:45 PM, stranger <[EMAIL PROTECTED]> wrote:
> > >   Is there a way in django where we can migrate the changes in model,
> > >  orrevertbackdatabasechanges to the original(fresh).
>
> > You probably want to search the archive of this list, which is
> > publicly available and powered by some of the finest search technology
> > on the planet.
>
> > --
> > "Bureaucrat Conrad, you are technically correct -- the best kind of 
> > correct."
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: revert database migration

2008-03-03 Thread stranger

Hi James,

 I have been following you blog for a very long time. Good
posts. Awaiting you django projects book t... After searching this
group archive i didnot find much regarding my question? I think django
should automatically make the changes in the model. I have added a new
model photo and the syncdb only synced the photo model but not the
changes in the Post model. Can you suggest me if there is a way I can
sync it or do I have to do manual SQl query.



On Mar 2, 11:15 pm, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On Sun, Mar 2, 2008 at 11:45 PM, stranger <[EMAIL PROTECTED]> wrote:
> >   Is there a way in django where we can migrate the changes in model,
> >  orrevertbackdatabasechanges to the original(fresh).
>
> You probably want to search the archive of this list, which is
> publicly available and powered by some of the finest search technology
> on the planet.
>
> --
> "Bureaucrat Conrad, you are technically correct -- the best kind of correct."
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: revert database migration

2008-03-02 Thread James Bennett

On Sun, Mar 2, 2008 at 11:45 PM, stranger <[EMAIL PROTECTED]> wrote:
>   Is there a way in django where we can migrate the changes in model,
>  or revert back database changes to the original(fresh).

You probably want to search the archive of this list, which is
publicly available and powered by some of the finest search technology
on the planet.


-- 
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



revert database migration

2008-03-02 Thread stranger

Hello group,

 I have a quick question. I have a django project where I have
model. I 'syncdb' the database with the model. After that I again
added few attributes to the model. but when I apply the syncdb command
its not syncing with the database.

 Is there a way in django where we can migrate the changes in model,
or revert back database changes to the original(fresh).

Thank you


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---