[instance creation] properly search for sql extension in the schema directory. Closes #2068117
--- 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,