Re: [SQLObject] SqlObject Sqlmeta fromDatabase problem
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
|
From: Oleg B. <ph...@ph...> - 2012-03-27 10:33:00
|
On Tue, Mar 27, 2012 at 05:27:45AM -0500, Jeremy Hoyle wrote:
> I added a stringcol to the class Company(SQLObject) table but it did not
> auto update my database with the column.
You've got it in the reverse direction. fromDatase gets the list of
columns *from* database. If you want to add a column from python to
database you ought to use sqlmeta.addColumn() with changeSchema set to
True.
Oleg.
--
Oleg Broytman http://phdru.name/ ph...@ph...
Programmers don't die, they just GOSUB without RETURN.
|