Insert release date into ChangeLog, fix NL upgrade script.
authorRaphaël Barrois <raphael.barrois@polytechnique.org>
Sun, 30 Jan 2011 23:40:12 +0000 (00:40 +0100)
committerRaphaël Barrois <raphael.barrois@polytechnique.org>
Sun, 30 Jan 2011 23:40:12 +0000 (00:40 +0100)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
ChangeLog
upgrade/1.0.2/10_newsletter.sql [moved from upgrade/1.1.0/20_newsletter.sql with 99% similarity]
upgrade/1.0.2/update.sh [new file with mode: 0755]

index 86860f0..4b6ad77 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,5 @@
 ================================================================================
-VERSION 1.0.2                                                         XX XX XXXX
+VERSION 1.0.2                                                         31 01 2011
 
 Bug/Wish:
 
similarity index 99%
rename from upgrade/1.1.0/20_newsletter.sql
rename to upgrade/1.0.2/10_newsletter.sql
index 24ced53..5ffc573 100644 (file)
@@ -10,7 +10,7 @@ CREATE TABLE newsletters (
   group_id smallint(5) UNSIGNED NOT NULL,
   name varchar(255) NOT NULL,
   custom_css BOOL NOT NULL DEFAULT FALSE,
-  criteria SET('axid', 'promo', 'geo') DEFAUL NULL,
+  criteria SET('axid', 'promo', 'geo') DEFAULT NULL,
   PRIMARY KEY (id),
   UNIQUE KEY  (group_id),
   FOREIGN KEY (group_id) REFERENCES groups (id)
@@ -113,7 +113,7 @@ LEFT JOIN  newsletter_issues AS ni ON (ni.nlid = @idnl_xorg AND ni.short_name =
 
 ALTER TABLE newsletter_art ADD FOREIGN KEY (id) REFERENCES newsletter_issues (id)
                                                 ON UPDATE CASCADE
-                                                ON DELETE CASCADE
+                                                ON DELETE CASCADE;
 
 --------------------
 -- newsletter_ins --
diff --git a/upgrade/1.0.2/update.sh b/upgrade/1.0.2/update.sh
new file mode 100755 (executable)
index 0000000..71bca66
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+. ../inc/pervasive.sh
+
+###########################################################
+[ "$DATABASE" != "x4dat" ] || die "Cannot target x4dat"
+copy_db
+
+confirm "* Running database upgrade scripts"
+mysql_run_directory .
+
+confirm "* Running upgrade scripts"
+script_run ./geocoding.php