i changed some fileds type to :type='upload', notnull=True, and I do see 
the changes, but not with the dropdwon .

On Tuesday, September 17, 2013 10:27:27 PM UTC+3, Massimo Di Pierro wrote:
>
> I do not believe the lack of dropdown has anything to do with the 
> migration. Something is changing the validator.
>
> On Tuesday, 17 September 2013 13:39:51 UTC-5, Avi A wrote:
>>
>> The first issue, yes I don't get a dropdown list. I only changed the 
>> field type and the migration line. I used the wizard to create a new app 
>> and there are quite many fixes I have to make, mostly changing the type to 
>> reference and replacing strings with uploads.
>> thanks.
>>
>> On Tuesday, September 17, 2013 4:13:46 PM UTC+3, Massimo Di Pierro wrote:
>>>
>>> There are two different issues. One is the question in your first email 
>>> about migration. Is the problem that you do not get a dropdown? Is it 
>>> possible you manually set a validator for the field?
>>>
>>> Your second question. How to drop a table.
>>> 1) enable migrations
>>> 2) python web2py.py -S yourapp -M -M
>>> 3) type
>>>
>>> db.yourtable.drop()
>>> db.commit()
>>>
>>> 4) edit the model and remove the table before using the app, else it 
>>> will be created again.
>>>
>>> On Tuesday, 17 September 2013 07:46:42 UTC-5, Avi A wrote:
>>>>
>>>> Changing it to True, didn't make a change either.
>>>>
>>>> On Tuesday, September 17, 2013 3:34:29 PM UTC+3, Avi A wrote:
>>>>>
>>>>> What's the procedure to drop the table?
>>>>>
>>>>> On Tuesday, September 17, 2013 3:22:35 PM UTC+3, Niphlod wrote:
>>>>>>
>>>>>> if you set migrate=False, what kind of migration you expect ?
>>>>>>
>>>>>> PS: changing something from integer to string suualy doesn't involve 
>>>>>> any problem: doing the opposite brings many.... my totally personal 
>>>>>> advice 
>>>>>> is drop those table and recreate them from scratch
>>>>>>
>>>>>> On Tuesday, September 17, 2013 1:33:54 PM UTC+2, Avi A wrote:
>>>>>>>
>>>>>>> Hi,
>>>>>>> I changed in some table (t_items) a field type from:
>>>>>>> type='string'
>>>>>>> to:
>>>>>>> type='reference t_categories'
>>>>>>> and replaced:
>>>>>>> migrate=settings.migrate
>>>>>>> with:
>>>>>>> migrate=False,fake_migrate=True
>>>>>>> I stopped and started the server,  but I don't see that the change 
>>>>>>> took place, on the relevant form. (create item.).
>>>>>>> What should I do?
>>>>>>> Thanks.
>>>>>>>
>>>>>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to