[instance creation] properly search for sql extension in the schema directory. Closes #2068117 stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 03 Nov 2011 11:44:02 +0100
branchstable
changeset 8047 972360b7677b
parent 8044 8ea1ad44ecac
child 8048 10a0f73d834d
[instance creation] properly search for sql extension in the schema directory. Closes #2068117
server/migractions.py
--- a/server/migractions.py	Thu Nov 03 11:18:21 2011 +0100
+++ b/server/migractions.py	Thu Nov 03 11:44:02 2011 +0100
@@ -388,7 +388,7 @@
         if cube is None:
             directory = osp.join(CW_SOFTWARE_ROOT, 'schemas')
         else:
-            directory = self.config.cube_dir(cube)
+            directory = osp.join(self.config.cube_dir(cube), 'schema')
         sql_scripts = []
         for fpath in glob(osp.join(directory, '*.sql.%s' % driver)):
             newname = osp.basename(fpath).replace('.sql.%s' % driver,