Changeset 3126:19af5f62e940 for inc/dbschema/upgrade.php
- Timestamp:
- 10/25/15 10:09:44 (10 years ago)
- Branch:
- default
- Children:
- 3128:3863cfaaae8d, 3130:dc667b6545bf
- Parents:
- 3118:5c671c6fae8a (diff), 3125:3491c455735d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/dbschema/upgrade.php
r3115 r3126 455 455 } 456 456 457 if (version_compare($version,'2.8.1','<')) 458 { 459 # Update flie exclusion upload regex 460 $strReq = 'UPDATE '.$core->prefix.'setting '. 461 " SET setting_value = '/\\.(phps?|pht(ml)?|phl)[0-9]*\$/i' ". 462 " WHERE setting_id = 'media_exclusion' ". 463 " AND setting_ns = 'system' ". 464 " AND (setting_value = '/\\.php[0-9]*\$/i' ". 465 " OR setting_value = '/\\.php\$/i') "; 466 $core->con->execute($strReq); 467 } 468 457 469 if (version_compare($version,'2.9','<')) 458 470 { -
inc/dbschema/upgrade.php
r3122 r3126 467 467 } 468 468 469 if (version_compare($version,'2.9','<')) 470 { 471 # Some new settings should be initialized, prepare db queries 472 $strReq = 'INSERT INTO '.$core->prefix.'setting'. 473 ' (setting_id,setting_ns,setting_value,setting_type,setting_label)'. 474 ' VALUES(\'%s\',\'system\',\'%s\',\'integer\',\'%s\')'; 475 $core->con->execute(sprintf($strReq,'media_video_width','400','Media video insertion width')); 476 $core->con->execute(sprintf($strReq,'media_video_height','300','Media video insertion height')); 477 } 478 469 479 $core->setVersion('core',DC_VERSION); 470 480 $core->blogDefaults();
Note: See TracChangeset
for help on using the changeset viewer.