[web2py] Re: web2py Database issues

2010-05-26 Thread Yarko Tymciurak
On May 26, 4:15 am, Neveen Adel wrote: > Hello, > >  i have a problem in the creation of new database > > I wrote my design into db.py : > > and then i run my application the tables was created only in > "appadmin", but when i show tables into mysql it displayed an empty > set. > > then any updat

[web2py] Re: web2py Database issues

2010-05-26 Thread Candid
On your second question, you should use alternate notation: db.define_table("location_unit)",       SQLField("name", "string", notnull=True),       SQLField("parentLocation", "reference location_unit"),       ) See http://web2py.com/book/default/section/6/13 for details. As for your first qu