Dump your data in the SQL file. Of course , separate structure and data.
Update structure. Verify ability to switch into digit. If you have using
Digit as string in dump you can update data manually or by see or ask. If
previous data contains char then no chances.
16 трав. 2015 16:26 "mangu rajpurohit" <rajpurohitma...@gmail.com> пише:

> Hi,
>
> I am new to Django. I am working on an application ,where the types of
> table fields in database are not known before hand. So, say for eg. In
> student table, I am assigning CharField to marks field, ie
>
> class Student(models.Model):
>      marks = model.CharField(max_length = 3)
>
> and after Student table in database is populated, can I change the type of
> marks to IntegerField as shown below :-
>
> class Student(models.Model):
>      marks = model.IntegerField()
>
>
> Is it possible ? If not feasible, then what are the alternatives
> ways/design strategies or what should be done in such cases ? If feasible,
> then what are its side-effects ?
>
> Sorry for my poor english.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/aed20dfc-8777-4998-b1ff-224f5012ff20%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/aed20dfc-8777-4998-b1ff-224f5012ff20%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CADTRxJOSad4TT6fFgLyTx%2BLVoMX2kQLq-77N%2BaQkEZA3UptB-w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to