[Fusionforge-commits] r8723 - in trunk/gforge: . db

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Sun Feb 7 11:56:14 CET 2010


Author: aljeux
Date: 2010-02-07 11:56:14 +0100 (Sun, 07 Feb 2010)
New Revision: 8723

Modified:
   trunk/gforge/db/gforge.sql
   trunk/gforge/install.sh
Log:
Tarball: Store the DB version directly in the gforge.sql to ensure
that the DB version is always in line with the current source used.
Add auto DB update during install/upgrade process.

Modified: trunk/gforge/db/gforge.sql
===================================================================
--- trunk/gforge/db/gforge.sql	2010-02-07 10:56:09 UTC (rev 8722)
+++ trunk/gforge/db/gforge.sql	2010-02-07 10:56:14 UTC (rev 8723)
@@ -7892,3 +7892,35 @@
 WITH OIDS;
 -- ALTER TABLE artifact_workflow_notify OWNER TO gforge;
 
+
+--
+-- Name: database_changes; Type: TABLE; Schema: public; Owner: gforge; Tablespace:
+--
+
+CREATE TABLE database_changes (
+    filename text
+);
+
+
+ALTER TABLE public.database_changes OWNER TO gforge;
+
+--
+-- Name: database_startpoint; Type: TABLE; Schema: public; Owner: gforge; Tablespace:
+--
+
+CREATE TABLE database_startpoint (
+    db_version character varying(10),
+    db_start_date integer
+);
+
+
+ALTER TABLE public.database_startpoint OWNER TO gforge;
+
+--
+-- Data for Name: database_startpoint; Type: TABLE DATA; Schema: public; Owner: gforge
+--
+
+COPY database_startpoint (db_version, db_start_date) FROM stdin;
+4.8.2   20090402
+\.
+

Modified: trunk/gforge/install.sh
===================================================================
--- trunk/gforge/install.sh	2010-02-07 10:56:09 UTC (rev 8722)
+++ trunk/gforge/install.sh	2010-02-07 10:56:14 UTC (rev 8723)
@@ -80,7 +80,7 @@
 	if [ $mode = "install" ]
 	then
 		php fusionforge-install-3-db.php
-		php db/startpoint.php $version
+		php db/upgrade-db.php
 
 		# Post installation fixes.
 		perl -spi -e "s/^#ServerName (.*):80/ServerName $hostname:80/" /etc/httpd/conf/httpd.conf
@@ -109,7 +109,7 @@
 	if [ $mode = "install" ]
 	then
 		php fusionforge-install-3-db.php
-		php db/startpoint.php $version
+		php db/upgrade-db.php
 
 		# Post installation fixes.
 		#perl -spi -e "s/^#ServerName (.*):80/ServerName $hostname:80/" /etc/apache2/httpd.conf




More information about the Fusionforge-commits mailing list