1101:BLOB, TEXT, GEOMETRY or JSON column 'about' can't have a default value

This commit is contained in:
Mitan Omar
2022-08-14 21:37:49 +02:00
parent 2e321485b0
commit 99ee00cd27

View File

@@ -8,14 +8,12 @@
*/ */
// not for directly open // not for directly open
if (! defined('IN_COMMON')) if (! defined('IN_COMMON')) {
{
exit(); exit();
} }
if (empty($install_sqls) || ! is_array($install_sqls)) if (empty($install_sqls) || ! is_array($install_sqls)) {
{
$install_sqls = []; $install_sqls = [];
} }
@@ -100,7 +98,7 @@ CREATE TABLE `{$dbprefix}files` (
`last_down` int(11) unsigned NOT NULL DEFAULT '0', `last_down` int(11) unsigned NOT NULL DEFAULT '0',
`name` varchar(300) collate utf8_bin NOT NULL DEFAULT '', `name` varchar(300) collate utf8_bin NOT NULL DEFAULT '',
`real_filename` VARCHAR( 350 ) collate utf8_bin NOT NULL DEFAULT '', `real_filename` VARCHAR( 350 ) collate utf8_bin NOT NULL DEFAULT '',
`about` LONGTEXT collate utf8_bin DEFAULT '' , `about` LONGTEXT collate utf8_bin,
`size` bigint(20) unsigned NOT NULL DEFAULT '0', `size` bigint(20) unsigned NOT NULL DEFAULT '0',
`uploads` int(11) unsigned NOT NULL DEFAULT '0', `uploads` int(11) unsigned NOT NULL DEFAULT '0',
`time` int(11) unsigned NOT NULL DEFAULT '0', `time` int(11) unsigned NOT NULL DEFAULT '0',