It is empty.

On Tue, Oct 23, 2012 at 4:01 PM, Niphlod <[email protected]> wrote:

> is your databases folder filled with the .table files relative to the
> tables ?
>
>
> On Tuesday, October 23, 2012 10:57:04 PM UTC+2, Jim S wrote:
>>
>> Hi - I use MySQL for my database.  In my production environment I'm
>> specifying the following:
>>
>> db = DAL(infoCenterUtil.getDalString(), migrate=False,
>>  migrate_enabled=False, bigint_id=True)
>>
>> On my production machine I'm also trying to use the DAL outside of web2py
>> with the following:
>>
>> import sys
>> sys.path.append('c:/prod/web2py')
>> from gluon import DAL, Field
>> db = DAL('mysql://username:password@server/database',folder=
>> 'c:/prod/web2py/applications/InfoCenter/databases', auto_import=True)
>>
>> print db.tables
>>
>> But, I get an empty list when I print db.tables.  On my test machine
>> where all of my auto-migrations happen, it works fine.
>>
>> Am I barking up the wrong tree in thinking that migration has something
>> to do with my problem (print db.tables give empty list).  If not, what am I
>> doing wrong?  I don't want auto-migrations on my production box.  What is
>> the proper way to have no migration on a machine, but allow for DAL outside
>> of web2py?
>>
>> -Jim
>>
> --
>
>
>
>

-- 



Reply via email to