mirror of
https://github.com/joomla-extensions/weblinks.git
synced 2025-01-26 05:48:26 +00:00
Remove width modifier from INT data type
This commit is contained in:
parent
4f9368e9dd
commit
931b5c453d
@ -330,7 +330,7 @@ class Com_WeblinksInstallerScript
|
|||||||
|
|
||||||
if (!array_key_exists('version', $table))
|
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->setQuery($sql);
|
||||||
$db->execute();
|
$db->execute();
|
||||||
}
|
}
|
||||||
|
@ -11,33 +11,33 @@ INSERT INTO `#__content_types` (`type_title`, `type_alias`, `table`, `rules`, `f
|
|||||||
--
|
--
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `#__weblinks` (
|
CREATE TABLE IF NOT EXISTS `#__weblinks` (
|
||||||
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
||||||
`catid` int(11) NOT NULL DEFAULT 0,
|
`catid` int NOT NULL DEFAULT 0,
|
||||||
`title` varchar(250) NOT NULL DEFAULT '',
|
`title` varchar(250) NOT NULL DEFAULT '',
|
||||||
`alias` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '',
|
`alias` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '',
|
||||||
`url` varchar(250) NOT NULL DEFAULT '',
|
`url` varchar(250) NOT NULL DEFAULT '',
|
||||||
`description` text NOT NULL,
|
`description` text NOT NULL,
|
||||||
`hits` int(11) NOT NULL DEFAULT 0,
|
`hits` int NOT NULL DEFAULT 0,
|
||||||
`state` tinyint(1) NOT NULL DEFAULT 0,
|
`state` tinyint NOT NULL DEFAULT 0,
|
||||||
`checked_out` int(11) NOT NULL DEFAULT 0,
|
`checked_out` int NOT NULL DEFAULT 0,
|
||||||
`checked_out_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
`checked_out_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||||
`ordering` int(11) NOT NULL DEFAULT 0,
|
`ordering` int NOT NULL DEFAULT 0,
|
||||||
`access` int(11) NOT NULL DEFAULT 1,
|
`access` int NOT NULL DEFAULT 1,
|
||||||
`params` text NOT NULL,
|
`params` text NOT NULL,
|
||||||
`language` char(7) NOT NULL DEFAULT '',
|
`language` char(7) NOT NULL DEFAULT '',
|
||||||
`created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
`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 '',
|
`created_by_alias` varchar(255) NOT NULL DEFAULT '',
|
||||||
`modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
`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,
|
`metakey` text NOT NULL,
|
||||||
`metadesc` text NOT NULL,
|
`metadesc` text NOT NULL,
|
||||||
`metadata` 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.',
|
`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_up` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||||
`publish_down` 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,
|
`images` text NOT NULL,
|
||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`),
|
||||||
KEY `idx_access` (`access`),
|
KEY `idx_access` (`access`),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user