for executable migration scripts
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Wed, 31 Jan 2007 10:03:17 +0000 (10:03 +0000)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Wed, 31 Jan 2007 10:03:17 +0000 (10:03 +0000)
migrations/README.txt
setup.py

index 86adddb..e8570bf 100644 (file)
@@ -1,3 +1,8 @@
 Store here migration scripts, named
-<nnn>-up-any-text.sql
+<nnn>-up-any-text.<ext>
 with contiguous indices starting with 001
+
+if the extension is .sql it is ran on the planetlab4 database
+otherwise it is run as is
+
+See myplc/plc.d/db for how this is used 
index d83636f..5df2a9e 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -5,7 +5,7 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # Copyright (C) 2006 The Trustees of Princeton University
 #
-# $Id: setup.py,v 1.7 2007/01/30 11:37:02 thierry Exp $
+# $Id: setup.py,v 1.8 2007/01/30 11:48:14 thierry Exp $
 #
 
 from distutils.core import setup
@@ -16,5 +16,5 @@ setup(py_modules = ['ModPython'],
       scripts = ['plcsh', 'Server.py', 'Test.py'],
       data_files = [('', ['planetlab4.sql']),
                     ('php', ['php/plc_api.php']),
-                    ('migrations', ['migrations/README.txt'] + glob('migrations/[0-9][0-9][0-9]*.sql')),
+                    ('migrations', ['migrations/README.txt'] + glob('migrations/[0-9][0-9][0-9]*')),
                     ])