From 931b5c453d4076299cba659857996d820c3e18a7 Mon Sep 17 00:00:00 2001 From: Tuan Pham Ngoc Date: Sun, 15 Aug 2021 17:39:00 +0700 Subject: [PATCH] Remove width modifier from INT data type --- .../components/com_weblinks/script.php | 2 +- .../com_weblinks/sql/install.mysql.sql | 22 +++++++++---------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/administrator/components/com_weblinks/script.php b/src/administrator/components/com_weblinks/script.php index 794c867..6912f22 100644 --- a/src/administrator/components/com_weblinks/script.php +++ b/src/administrator/components/com_weblinks/script.php @@ -330,7 +330,7 @@ class Com_WeblinksInstallerScript if (!array_key_exists('version', $table)) { - $sql = 'ALTER TABLE ' . $db->quoteName('#__weblinks') . ' ADD COLUMN ' . $db->quoteName('version') . " int(10) unsigned NOT NULL DEFAULT '1'"; + $sql = 'ALTER TABLE ' . $db->quoteName('#__weblinks') . ' ADD COLUMN ' . $db->quoteName('version') . " int unsigned NOT NULL DEFAULT '1'"; $db->setQuery($sql); $db->execute(); } diff --git a/src/administrator/components/com_weblinks/sql/install.mysql.sql b/src/administrator/components/com_weblinks/sql/install.mysql.sql index a9d3690..97f80c1 100644 --- a/src/administrator/components/com_weblinks/sql/install.mysql.sql +++ b/src/administrator/components/com_weblinks/sql/install.mysql.sql @@ -11,33 +11,33 @@ INSERT INTO `#__content_types` (`type_title`, `type_alias`, `table`, `rules`, `f -- CREATE TABLE IF NOT EXISTS `#__weblinks` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `catid` int(11) NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `catid` int NOT NULL DEFAULT 0, `title` varchar(250) NOT NULL DEFAULT '', `alias` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '', `url` varchar(250) NOT NULL DEFAULT '', `description` text NOT NULL, - `hits` int(11) NOT NULL DEFAULT 0, - `state` tinyint(1) NOT NULL DEFAULT 0, - `checked_out` int(11) NOT NULL DEFAULT 0, + `hits` int NOT NULL DEFAULT 0, + `state` tinyint NOT NULL DEFAULT 0, + `checked_out` int NOT NULL DEFAULT 0, `checked_out_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', - `ordering` int(11) NOT NULL DEFAULT 0, - `access` int(11) NOT NULL DEFAULT 1, + `ordering` int NOT NULL DEFAULT 0, + `access` int NOT NULL DEFAULT 1, `params` text NOT NULL, `language` char(7) NOT NULL DEFAULT '', `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', - `created_by` int(10) unsigned NOT NULL DEFAULT 0, + `created_by` int unsigned NOT NULL DEFAULT 0, `created_by_alias` varchar(255) NOT NULL DEFAULT '', `modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', - `modified_by` int(10) unsigned NOT NULL DEFAULT 0, + `modified_by` int unsigned NOT NULL DEFAULT 0, `metakey` text NOT NULL, `metadesc` text NOT NULL, `metadata` text NOT NULL, - `featured` tinyint(3) unsigned NOT NULL DEFAULT 0 COMMENT 'Set if link is featured.', + `featured` tinyint unsigned NOT NULL DEFAULT 0 COMMENT 'Set if link is featured.', `xreference` varchar(50) NOT NULL COMMENT 'A reference to enable linkages to external data sets.', `publish_up` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `publish_down` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', - `version` int(10) unsigned NOT NULL DEFAULT 1, + `version` int unsigned NOT NULL DEFAULT 1, `images` text NOT NULL, PRIMARY KEY (`id`), KEY `idx_access` (`access`),