Thank you! I managed to do it following your tip and the guide you sent. 2015-01-22 10:54 GMT-02:00 Jakub Libosvar <libosvar at redhat.com>: > On 01/22/2015 01:00 PM, Ettore zugliani wrote: > > I am implementing the precommit part of a mechanism driver (ml2) right > > now i'm having problems with sqlalchemy. > > I made the class that uses the tables, but when the precommit is called > > an error pops up telling that the tables don't exists. > > To create the tables should i use a create all on initialize? or is > > there a proper way of doing it? > Hi Ettore, > > you need to make a migration script for your class. More info can be > found here: https://wiki.openstack.org/wiki/Neutron/DatabaseMigration > > After autogenerating you can fine-tune it. It's gonna be placed at > neutron/db/migration/alembic_migrations/versions/ > > Kuba > > > > > > > > __________________________________________________________________________ > > OpenStack Development Mailing List (not for usage questions) > > Unsubscribe: > OpenStack-dev-request at lists.openstack.org?subject:unsubscribe > > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev > > > > > __________________________________________________________________________ > OpenStack Development Mailing List (not for usage questions) > Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20150122/b62f6411/attachment.html>