call special sql files in correct order stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 30 Sep 2009 16:23:12 +0200
branchstable
changeset 3530 7dfe9d2c0fe7
parent 3529 87b5086fd6a7
child 3531 c095f5f54873
call special sql files in correct order
server/__init__.py
--- a/server/__init__.py	Wed Sep 30 16:06:58 2009 +0200
+++ b/server/__init__.py	Wed Sep 30 16:23:12 2009 +0200
@@ -147,7 +147,7 @@
     for fpath in glob(join(CW_SOFTWARE_ROOT, 'schemas', '*.sql.%s' % driver)):
         print '-> installing', fpath
         sqlexec(open(fpath).read(), execute, False, delimiter=';;')
-    for directory in config.cubes_path():
+    for directory in reversed(config.cubes_path()):
         for fpath in glob(join(directory, 'schema', '*.sql.%s' % driver)):
             print '-> installing', fpath
             sqlexec(open(fpath).read(), execute, False, delimiter=';;')