[web2py] Re: Help on fake_migration

2013-04-05 Thread Niphlod
pass the same migrate argument of you DAL call to auth.define_tables() too 
(e.g., auth.define_tables(fake_migrate=True))

On Saturday, April 6, 2013 1:24:33 AM UTC+2, Tito Garrido wrote:
>
> Hi Folks!
>
> I am trying to migrate my web2py application from one server to another.
>
> I have pack my application and restored the MYSQL database but when I 
> tried to run it there I got:
> InternalError: (1050, u"Table 'auth_user' already 
> exists")
> I have followed 
> http://web2py.com/books/default/chapter/29/06?search=fake_#Fixing-broken-migrations
>
> but when I try to use fake_migration I got
> 504 Gateway Time-out 
> --
> nginx/1.1.19
>
>
> How can I fix it?
>
> Regards,
>
> Tito
>
> -- 
>
> Linux User #387870
> .
>  _/_õ|__|
> ..º[ .-.___.-._| . . . .
> .__( o)__( o).:___ 
>

-- 

--- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] Re: Help on fake_migration

2013-04-05 Thread tomt
I migrate applications fairly often, and using fake_migrate_all works best 
for me:

db = DAL(...,fake_migrate_all=True)



On Friday, April 5, 2013 5:24:33 PM UTC-6, Tito Garrido wrote:
>
> Hi Folks!
>
> I am trying to migrate my web2py application from one server to another.
>
> I have pack my application and restored the MYSQL database but when I 
> tried to run it there I got:
> InternalError: (1050, u"Table 'auth_user' already 
> exists")
> I have followed 
> http://web2py.com/books/default/chapter/29/06?search=fake_#Fixing-broken-migrations
>
> but when I try to use fake_migration I got
> 504 Gateway Time-out 
> --
> nginx/1.1.19
>
>
> How can I fix it?
>
> Regards,
>
> Tito
>
> -- 
>
> Linux User #387870
> .
>  _/_õ|__|
> ..º[ .-.___.-._| . . . .
> .__( o)__( o).:___ 
>

-- 

--- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.