Textpattern | PHP Cross Reference | Content Management Systems |
1 <?php 2 3 /* 4 * Textpattern Content Management System 5 * http://textpattern.com 6 * 7 * Copyright (C) 2016 The Textpattern Development Team 8 * 9 * This file is part of Textpattern. 10 * 11 * Textpattern is free software; you can redistribute it and/or 12 * modify it under the terms of the GNU General Public License 13 * as published by the Free Software Foundation, version 2. 14 * 15 * Textpattern is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU General Public License for more details. 19 * 20 * You should have received a copy of the GNU General Public License 21 * along with Textpattern. If not, see <http://www.gnu.org/licenses/>. 22 */ 23 24 if (!defined('TXP_UPDATE')) { 25 exit("Nothing here. You can't access this file directly."); 26 } 27 28 // Updates comment email length. 29 safe_alter('txp_discuss', "MODIFY email VARCHAR(254) NOT NULL DEFAULT ''"); 30 31 // Store IPv6 properly in logs. 32 safe_alter('txp_log', "MODIFY ip VARCHAR(45) NOT NULL DEFAULT ''"); 33 34 // Save sections correctly in articles. 35 safe_alter('textpattern', "MODIFY Section VARCHAR(255) NOT NULL DEFAULT ''"); 36 37 // Ensure all memory-mappable columns have defaults 38 safe_alter('txp_form', "MODIFY name VARCHAR(64) NOT NULL DEFAULT ''"); 39 safe_alter('txp_page', "MODIFY name VARCHAR(128) NOT NULL DEFAULT ''"); 40 safe_alter('txp_prefs', "MODIFY prefs_id INT NOT NULL DEFAULT '1'"); 41 safe_alter('txp_prefs', "MODIFY name VARCHAR(255) NOT NULL DEFAULT ''"); 42 safe_alter('txp_section', "MODIFY name VARCHAR(128) NOT NULL DEFAULT ''");
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
title