add support for migrations with sqlalchemy-migrate
[sfa.git] / sfa / server / registry.py
index bdad7df..5bc7af5 100644 (file)
@@ -20,6 +20,10 @@ class Registry(SfaServer):
     
     def __init__(self, ip, port, key_file, cert_file):
         SfaServer.__init__(self, ip, port, key_file, cert_file,'registry')
+        # initialize db schema
+        from sfa.storage.alchemy import dbsession
+        from sfa.storage.persistentobjs import init_tables
+        init_tables(dbsession)
 
 #
 # Registries is a dictionary of registry connections keyed on the registry hrn