Trying to get a simple migration working (I want to add a datetime "activated" 
column to a table).

Despite what it says at the top of the official documentation here:

<http://packages.python.org/sqlalchemy-migrate/changeset.html#column>

when I do col.create(table) (here is the code: 
<http://paste.chrisarndt.de/paste/69624c289e4f482e975a9961d4937d50>), I get:

AttributeError: 'Column' object has no attribute 'create'

So now I'm just doing table.create() after defining the table how I want (I'm 
having trouble working this out definitively, but I think that's how SQLAlchemy 
does schema changes). That's here: 
<http://paste.chrisarndt.de/paste/620eb622bb9b47fbad4667f7e54807c7>. I am 
absolutely certain that my database has a table "accounts", with a column "id", 
yet this gives me:

sqlalchemy.exc.NoReferencedTableError: Could not find table 'accounts' with 
which to generate a foreign key

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en.

Reply via email to