Now added renaming from 'id' to 'booking_id'
authorRoland Häder <roland@mxchange.org>
Mon, 22 Oct 2012 20:59:40 +0000 (20:59 +0000)
committerRoland Häder <roland@mxchange.org>
Mon, 22 Oct 2012 20:59:40 +0000 (20:59 +0000)
inc/extensions/ext-booking.php

index ac8ea5224bd6689feb012e13264c3626f55b38ee..aa0b3e4752548e5a987f0fd864234f2dc4a958e4 100644 (file)
@@ -41,10 +41,10 @@ if (!defined('__SECURITY')) {
 } // END - if
 
 // Version number
-setThisExtensionVersion('0.0.0');
+setThisExtensionVersion('0.0.1');
 
 // Version history array (add more with , '0.0.1' and so on)
-setExtensionVersionHistory(array('0.0.0'));
+setExtensionVersionHistory(array('0.0.0', '0.0.1'));
 
 // Check extension load-mode
 switch (getExtensionMode()) {
@@ -105,10 +105,10 @@ INDEX (`userid`)",
        case 'update': // Update an extension
                switch (getCurrentExtensionVersion()) {
                        case '0.0.1': // SQL queries for v0.0.1
-                               addExtensionSql('');
+                               addExtensionChangeTableColumnSql('user_booking', 'id', 'booking_id', 'BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT');
 
                                // Update notes (these will be set as task text!)
-                               setExtensionUpdateNotes('');
+                               setExtensionUpdateNotes("Spalte <strong>id</strong umbenannt nach <strong>booking_id</strong>, da <em>id</em> zu allgemein ist (sollte am besten &uuml;berall folgen).");
                                break;
                } // END - switch