2018-01-09 02:09:07 +03:00
|
|
|
<?php
|
2019-05-13 00:03:24 +03:00
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @package install
|
2020-04-11 22:45:48 +02:00
|
|
|
* @copyright (c) 2007 Kleeja.net
|
2019-05-13 00:03:24 +03:00
|
|
|
* @license ./docs/license.txt
|
|
|
|
|
*
|
|
|
|
|
*/
|
2018-01-09 02:09:07 +03:00
|
|
|
|
2019-05-13 00:03:24 +03:00
|
|
|
// not for directly open
|
|
|
|
|
if (! defined('IN_COMMON'))
|
|
|
|
|
{
|
|
|
|
|
exit();
|
|
|
|
|
}
|
2018-01-09 02:09:07 +03:00
|
|
|
|
2019-05-13 00:03:24 +03:00
|
|
|
|
|
|
|
|
// drop older versions update support after 2 year of release or as appropriate in order to
|
|
|
|
|
// make this file smaller in size.
|
|
|
|
|
$update_schema = [];
|
|
|
|
|
|
|
|
|
|
$update_schema[9]['sql'] = [
|
2019-05-03 23:52:08 +03:00
|
|
|
'files_size_big' => "ALTER TABLE `{$dbprefix}files` CHANGE `size` `size` BIGINT(20) NOT NULL DEFAULT '0';",
|
|
|
|
|
'group_size_big' => "ALTER TABLE `{$dbprefix}groups_exts` CHANGE `size` `size` BIGINT(20) NOT NULL DEFAULT '0';",
|
|
|
|
|
'files_index_type' => "ALTER TABLE `{$dbprefix}files` ADD INDEX `type` (`type`);",
|
|
|
|
|
'id_form_img' => 'INSERT INTO `' . $dbprefix . 'config` (`name`, `value`, `option`, `display_order`, `type`, `plg_id`, `dynamic`) VALUES (\'id_form_img\', X\'6964\', \'<select id=\"id_form_img\" name=\"id_form_img\">\r\n <option <IF NAME=\"con.id_form_img==id\">selected=\"selected\"</IF> value=\"id\">{lang.IDF_IMG}</option>\r\n <option <IF NAME=\"con.id_form_img ==filename\">selected=\"selected\"</IF> value=\"filename\">{lang.IDFF_IMG}</option>\r\n<option <IF NAME=\"con.id_form_img ==direct\">selected=\"selected\"</IF> value=\"direct\">{lang.IDFD_IMG}</option>\r\n </select>\n\', \'21\', X\'75706C6F6164\', \'0\', \'0\');',
|
|
|
|
|
];
|
2018-01-09 02:09:07 +03:00
|
|
|
|
|
|
|
|
|
2019-05-13 00:03:24 +03:00
|
|
|
// $update_schema[9]['functions'] = [
|
|
|
|
|
// function () {
|
|
|
|
|
// },
|
|
|
|
|
// function () {
|
|
|
|
|
// },
|
|
|
|
|
// ];
|
2020-05-24 18:18:00 +02:00
|
|
|
|
|
|
|
|
$update_schema[10]['sql'] = [
|
|
|
|
|
'about_files' => "ALTER TABLE `{$dbprefix}files` ADD `about` LONGTEXT NULL DEFAULT NULL AFTER `real_filename`;",
|
|
|
|
|
];
|