Thread: [SQLObject] Working with pre-existing tables
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Luis J. P. <jav...@gm...> - 2008-07-16 17:38:59
|
Hello, I'd like to resolve a simple question, if I create a table (by means of sqlobject) and later I'd like to add a new column, how I must proceed? Thanks in advance. Greetings. |
From: Oleg B. <ph...@ph...> - 2008-07-17 06:46:50
|
On Wed, Jul 16, 2008 at 07:38:57PM +0200, Luis Javier Peris wrote: > I'd like to resolve a simple question, if I create a table (by means of > sqlobject) and later I'd like to add a new column, how I must proceed? MyTable.sqlmeta.addColumn(StrinCol(name='new_column', length=255), changeSchema=True) Oleg. -- Oleg Broytmann http://phd.pp.ru/ ph...@ph... Programmers don't die, they just GOSUB without RETURN. |