NAVIGATION
This shows you the differences between two versions of the page.
|
deutsch:installation:update:r403 [2010/11/24 21:46] Knut Heermann (flip-flop) |
deutsch:installation:update:r403 [2018/06/03 18:09] (current) |
||
|---|---|---|---|
| Line 4: | Line 4: | ||
| - | **Update nach r405 (V1.4.7) von älteren Versionen < r401 (V1.4.6)** | + | <del>**Update nach r405 (V1.4.7) von älteren Versionen < r401 (V1.4.6)**</del> |
| - | Vorgehensweise nach Installation r405 V1.4.7 wenn das Update von einer älteren Version nicht funktioniert: | ||
| + | * Forum: [[http://forum.phpwcms.org/viewtopic.php?p=127567#p127567]] | ||
| + | |||
| + | <note> **Problem gelöst** seit der Version r406 V1.4.7 -> [[http://www.phpwcms-docu.de/download-dev-versionen.phtml|DOCU: Download DEV - Versionen im ZIP Format]]</note> | ||
| + | |||
| + | <del>**Vorgehensweise nach Installation r405 V1.4.7 wenn das Update von einer älteren Version nicht funktioniert: **</del> | ||
| - | * Script nach /template/inc_script/frontend_render/update_403.php kopieren. | + | |
| - | * Das Frontend einmal aufrufen | + | * Diesen Text in die neu anzulegende Datei ##include/inc_lib/revision/r405.php## kopieren. |
| - | * Diese Script aus /frontend_render/ löschen !! | + | * Die Datei ##content/tmp/r405.checked.tmp## löschen, wenn das Update scheinbar nicht funktioniert hat (Fehlermeldung "Fatal error: _setConfig failed" in FE). |
| \\ | \\ | ||
| - | **Update 18.11.2010** | + | <del>**Update 23.11.2010** (Korrigiertes DB-Update)</del> |
| * Prüft ob das Feld "sysvalue_vartype" in der Tabelle "phpwcms_sysvalue" existiert und erzeugt es wenn noch nicht vorhanden. //(Seit r171 vorhanden)// \\ Dieses Feld wurde bisher nicht verwendet und nur bei Neuinstallationen nach r171 erzeugt. \\ In DB-Updates ist die Anlage nicht vorhanden! | * Prüft ob das Feld "sysvalue_vartype" in der Tabelle "phpwcms_sysvalue" existiert und erzeugt es wenn noch nicht vorhanden. //(Seit r171 vorhanden)// \\ Dieses Feld wurde bisher nicht verwendet und nur bei Neuinstallationen nach r171 erzeugt. \\ In DB-Updates ist die Anlage nicht vorhanden! | ||
| Line 20: | Line 24: | ||
| \\ | \\ | ||
| - | **Update 23.11.2010** | ||
| - | |||
| - | * Diesen Text in die neu anzulegende Datei ##include/inc_lib/revision/r405.php## kopieren. | ||
| - | * Die Datei ##content/tmp/r405.checked.tmp## löschen, wenn das Update scheinbar nicht funktioniert hat (Fehlermeldung "Fatal error: _setConfig failed" in FE). | ||
| - | Datei: include/inc_lib/revision/r405.php | ||
| <code php> | <code php> | ||
| Line 132: | Line 131: | ||
| \\ | \\ | ||
| - | ===== frontend_render Script: ===== | ||
| - | |||
| - | <code php> | ||
| - | <?php | ||
| - | /* --------------- < 401 */ | ||
| - | // check if sysvalue_vartype field exists | ||
| - | $result = _dbQuery("SHOW COLUMNS FROM ".DB_PREPEND."phpwcms_sysvalue LIKE 'sysvalue_vartype'", 'COUNT_SHOW'); | ||
| - | |||
| - | if(empty($result)) { | ||
| - | $result = _dbQuery("ALTER TABLE ".DB_PREPEND."phpwcms_sysvalue ADD sysvalue_vartype VARCHAR(100) NOT NULL DEFAULT ''", 'ALTER'); | ||
| - | |||
| - | /* --------------- 401 */ | ||
| - | $revision = '401'; | ||
| - | |||
| - | // check if article description field exists | ||
| - | $result = _dbQuery("SHOW COLUMNS FROM ".DB_PREPEND."phpwcms_article LIKE 'article_description'", 'COUNT_SHOW'); | ||
| - | |||
| - | if(empty($result)) { | ||
| - | $result = _dbQuery("ALTER TABLE ".DB_PREPEND."phpwcms_article ADD article_description VARCHAR(255) NOT NULL DEFAULT ''", 'ALTER'); | ||
| - | @write_textfile(PHPWCMS_TEMP.'r'.$revision.'.checked.tmp', date('Y-d-m H:i:s')); | ||
| - | } | ||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | /* ---------------- 403 */ | ||
| - | $revision = '403'; | ||
| - | |||
| - | $result = _dbQuery("SHOW COLUMNS FROM ".DB_PREPEND."phpwcms_articlecontent LIKE 'acontent_tab'", 'COUNT_SHOW'); | ||
| - | |||
| - | if(empty($result)) { | ||
| - | $result = _dbQuery("ALTER TABLE ".DB_PREPEND."phpwcms_articlecontent ADD acontent_tab VARCHAR(255) NOT NULL DEFAULT ''", 'ALTER'); | ||
| - | } | ||
| - | |||
| - | // check if new structure level class field exists | ||
| - | $result = _dbQuery("SHOW COLUMNS FROM ".DB_PREPEND."phpwcms_articlecat LIKE 'acat_class'", 'COUNT_SHOW'); | ||
| - | |||
| - | if(empty($result)) { | ||
| - | $result = _dbQuery("ALTER TABLE ".DB_PREPEND."phpwcms_articlecat ADD acat_class VARCHAR(255) NOT NULL DEFAULT ''", 'ALTER'); | ||
| - | } | ||
| - | |||
| - | // check if new structure level keywords field exists | ||
| - | $result = _dbQuery("SHOW COLUMNS FROM ".DB_PREPEND."phpwcms_articlecat LIKE 'acat_keywords'", 'COUNT_SHOW'); | ||
| - | |||
| - | if(empty($result)) { | ||
| - | $result = _dbQuery("ALTER TABLE ".DB_PREPEND."phpwcms_articlecat ADD acat_keywords VARCHAR(255) NOT NULL DEFAULT ''", 'ALTER'); | ||
| - | } | ||
| - | |||
| - | // upgrade sysvalue fields | ||
| - | $result = _dbQuery("SHOW COLUMNS FROM ".DB_PREPEND."phpwcms_sysvalue LIKE 'sysvalue_vartype'"); | ||
| - | if(isset($result[0]['Type']) && $result[0]['Type'] == 'varchar(100)') { | ||
| - | $result = _dbQuery("ALTER TABLE ".DB_PREPEND."phpwcms_sysvalue CHANGE sysvalue_vartype sysvalue_vartype VARCHAR(255) NOT NULL DEFAULT ''", 'ALTER'); | ||
| - | } | ||
| - | $result = _dbQuery("SHOW COLUMNS FROM ".DB_PREPEND."phpwcms_sysvalue LIKE 'sysvalue_value'"); | ||
| - | if(isset($result[0]['Type']) && $result[0]['Type'] == 'text') { | ||
| - | $result = _dbQuery("ALTER TABLE ".DB_PREPEND."phpwcms_sysvalue CHANGE sysvalue_value sysvalue_value MEDIUMTEXT NOT NULL", 'ALTER'); | ||
| - | } | ||
| - | |||
| - | @write_textfile(PHPWCMS_TEMP.'r'.$revision.'.checked.tmp', date('Y-d-m H:i:s')); | ||
| - | |||
| - | ?> | ||
| - | |||
| - | </code> | ||
| - | |||
| - | |||
| - | \\ | ||
| - | |||
| - | <note important>**Nicht getestet!!**</note> | ||
| --- //[[flip-flop@myrealbox.com|Knut Heermann (flip-flop)]] 2010/11/07 19:47// | --- //[[flip-flop@myrealbox.com|Knut Heermann (flip-flop)]] 2010/11/07 19:47// | ||