Revision: 1050
          http://mrbs.svn.sourceforge.net/mrbs/?rev=1050&view=rev
Author:   cimorrison
Date:     2009-03-16 16:10:55 +0000 (Mon, 16 Mar 2009)

Log Message:
-----------
Added the ability for a PHP file (called 'post.inc') to be executed if present 
after a database upgrade.    This allows, for example, new columns to be 
populated with appropriate values.

Modified Paths:
--------------
    mrbs/trunk/web/upgrade.inc

Modified: mrbs/trunk/web/upgrade.inc
===================================================================
--- mrbs/trunk/web/upgrade.inc  2009-03-13 22:32:25 UTC (rev 1049)
+++ mrbs/trunk/web/upgrade.inc  2009-03-16 16:10:55 UTC (rev 1050)
@@ -64,6 +64,12 @@
       }
     }
     print "</p>\n";
+    
+    // Now execute the PHP file if there is one
+    if (file_exists("upgrade/$ver/post.inc"))
+    {
+      include "upgrade/$ver/post.inc";
+    }
   }
 }
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to