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 >