diff --git a/src/com_weblinks/admin/sql/install.mysql.sql b/src/com_weblinks/admin/sql/install.mysql.sql new file mode 100644 index 0000000..226d286 --- /dev/null +++ b/src/com_weblinks/admin/sql/install.mysql.sql @@ -0,0 +1,51 @@ +-- +-- Insert data into table `#__content_types` for UCM functions +-- + +INSERT INTO `#__content_types` (`type_title`, `type_alias`, `table`, `rules`, `field_mappings`, `router`, `content_history_options`) VALUES +('Weblink', 'com_weblinks.weblink', '{"special":{"dbtable":"#__weblinks","key":"id","type":"Weblink","prefix":"WeblinksTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"title","core_state":"state","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"description", "core_hits":"hits","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access", "core_params":"params", "core_featured":"featured", "core_metadata":"metadata", "core_language":"language", "core_images":"images", "core_urls":"urls", "core_version":"version", "core_ordering":"ordering", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"catid", "core_xreference":"xreference", "asset_id":"null"}, "special":{}}', 'WeblinksHelperRoute::getWeblinkRoute', '{"formFile":"administrator\\/components\\/com_weblinks\\/models\\/forms\\/weblink.xml", "hideFields":["asset_id","checked_out","checked_out_time","version","featured","images"], "ignoreChanges":["modified_by", "modified", "checked_out", "checked_out_time", "version", "hits"], "convertToInt":["publish_up", "publish_down", "featured", "ordering"], "displayLookup":[{"sourceColumn":"catid","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"created_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"} ]}'), +('Weblinks Category', 'com_weblinks.category', '{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description", "core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access", "core_params":"params", "core_featured":"null", "core_metadata":"metadata", "core_language":"language", "core_images":"null", "core_urls":"null", "core_version":"version", "core_ordering":"null", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"parent_id", "core_xreference":"null", "asset_id":"asset_id"}, "special":{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}}', 'WeblinksHelperRoute::getCategoryRoute', '{"formFile":"administrator\\/components\\/com_categories\\/models\\/forms\\/category.xml", "hideFields":["asset_id","checked_out","checked_out_time","version","lft","rgt","level","path","extension"], "ignoreChanges":["modified_user_id", "modified_time", "checked_out", "checked_out_time", "version", "hits", "path"],"convertToInt":["publish_up", "publish_down"], "displayLookup":[{"sourceColumn":"created_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"parent_id","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"}]}'); + +-- +-- Table structure for table `#__weblinks` +-- + +CREATE TABLE IF NOT EXISTS `#__weblinks` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `catid` int(11) NOT NULL DEFAULT 0, + `title` varchar(250) NOT NULL DEFAULT '', + `alias` varchar(255) CHARACTER SET utf8 COLLATE utf8_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, + `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, + `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_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, + `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.', + `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, + `images` text NOT NULL, + PRIMARY KEY (`id`), + KEY `idx_access` (`access`), + KEY `idx_checkout` (`checked_out`), + KEY `idx_state` (`state`), + KEY `idx_catid` (`catid`), + KEY `idx_createdby` (`created_by`), + KEY `idx_featured_catid` (`featured`,`catid`), + KEY `idx_language` (`language`), + KEY `idx_xreference` (`xreference`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; diff --git a/src/com_weblinks/admin/sql/install.mysql.utf8.sql b/src/com_weblinks/admin/sql/install.mysql.utf8.sql deleted file mode 100644 index fb2eeb5..0000000 --- a/src/com_weblinks/admin/sql/install.mysql.utf8.sql +++ /dev/null @@ -1,42 +0,0 @@ -CREATE TABLE IF NOT EXISTS `#__weblinks` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `catid` int(11) NOT NULL DEFAULT '0', - `sid` int(11) NOT NULL DEFAULT '0', - `title` varchar(250) NOT NULL DEFAULT '', - `alias` varchar(255) NOT NULL DEFAULT '', - `url` varchar(250) NOT NULL DEFAULT '', - `description` text NOT NULL, - `date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', - `hits` int(11) NOT NULL DEFAULT '0', - `state` tinyint(1) NOT NULL DEFAULT '0', - `checked_out` int(11) NOT NULL DEFAULT '0', - `checked_out_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', - `ordering` int(11) NOT NULL DEFAULT '0', - `archived` tinyint(1) NOT NULL DEFAULT '0', - `approved` tinyint(1) NOT NULL DEFAULT '1', - `access` int(11) 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_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', - `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.', - `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', - PRIMARY KEY (`id`), - KEY `idx_access` (`access`), - KEY `idx_checkout` (`checked_out`), - KEY `idx_state` (`state`), - KEY `idx_catid` (`catid`), - KEY `idx_createdby` (`created_by`), - KEY `idx_featured_catid` (`featured`,`catid`), - KEY `idx_language` (`language`), - KEY `idx_xreference` (`xreference`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; - diff --git a/src/com_weblinks/admin/sql/install.postgresql.sql b/src/com_weblinks/admin/sql/install.postgresql.sql new file mode 100644 index 0000000..c66da70 --- /dev/null +++ b/src/com_weblinks/admin/sql/install.postgresql.sql @@ -0,0 +1,52 @@ +-- +-- Insert data into table #__content_types for UCM functions +-- +INSERT INTO "#__content_types" ("type_title", "type_alias", "table", "rules", "field_mappings", "router", "content_history_options") VALUES +('Weblink', 'com_weblinks.weblink', '{"special":{"dbtable":"#__weblinks","key":"id","type":"Weblink","prefix":"WeblinksTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"title","core_state":"state","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"description", "core_hits":"hits","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access", "core_params":"params", "core_featured":"featured", "core_metadata":"metadata", "core_language":"language", "core_images":"images", "core_urls":"urls", "core_version":"version", "core_ordering":"ordering", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"catid", "core_xreference":"xreference", "asset_id":"null"}, "special":{}}', 'WeblinksHelperRoute::getWeblinkRoute', '{"formFile":"administrator\\/components\\/com_weblinks\\/models\\/forms\\/weblink.xml", "hideFields":["asset_id","checked_out","checked_out_time","version","featured","images"], "ignoreChanges":["modified_by", "modified", "checked_out", "checked_out_time", "version", "hits"], "convertToInt":["publish_up", "publish_down", "featured", "ordering"], "displayLookup":[{"sourceColumn":"catid","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"created_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"} ]}'), +('Weblinks Category', 'com_weblinks.category', '{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description", "core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access", "core_params":"params", "core_featured":"null", "core_metadata":"metadata", "core_language":"language", "core_images":"null", "core_urls":"null", "core_version":"version", "core_ordering":"null", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"parent_id", "core_xreference":"null", "asset_id":"asset_id"}, "special":{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}}', 'WeblinksHelperRoute::getCategoryRoute', '{"formFile":"administrator\\/components\\/com_categories\\/models\\/forms\\/category.xml", "hideFields":["asset_id","checked_out","checked_out_time","version","lft","rgt","level","path","extension"], "ignoreChanges":["modified_user_id", "modified_time", "checked_out", "checked_out_time", "version", "hits", "path"],"convertToInt":["publish_up", "publish_down"], "displayLookup":[{"sourceColumn":"created_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"parent_id","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"}]}'); + +-- +-- Table: #__weblinks +-- +CREATE TABLE "#__weblinks" ( + "id" serial NOT NULL, + "catid" bigint DEFAULT 0 NOT NULL, + "title" varchar(250) DEFAULT '' NOT NULL, + "alias" varchar(255) DEFAULT '' NOT NULL, + "url" varchar(250) DEFAULT '' NOT NULL, + "description" text NOT NULL, + "hits" bigint DEFAULT 0 NOT NULL, + "state" smallint DEFAULT 0 NOT NULL, + "checked_out" bigint DEFAULT 0 NOT NULL, + "checked_out_time" timestamp without time zone DEFAULT '1970-01-01 00:00:00' NOT NULL, + "ordering" bigint DEFAULT 0 NOT NULL, + "access" bigint DEFAULT 1 NOT NULL, + "params" text NOT NULL, + "language" varchar(7) DEFAULT '' NOT NULL, + "created" timestamp without time zone DEFAULT '1970-01-01 00:00:00' NOT NULL, + "created_by" integer DEFAULT 0 NOT NULL, + "created_by_alias" varchar(255) DEFAULT '' NOT NULL, + "modified" timestamp without time zone DEFAULT '1970-01-01 00:00:00' NOT NULL, + "modified_by" integer DEFAULT 0 NOT NULL, + "metakey" text NOT NULL, + "metadesc" text NOT NULL, + "metadata" text NOT NULL, + "featured" smallint DEFAULT 0 NOT NULL, + "xreference" varchar(50) NOT NULL, + "publish_up" timestamp without time zone DEFAULT '1970-01-01 00:00:00' NOT NULL, + "publish_down" timestamp without time zone DEFAULT '1970-01-01 00:00:00' NOT NULL, + "version" bigint DEFAULT 1 NOT NULL, + "images" text NOT NULL, + PRIMARY KEY ("id") +); +CREATE INDEX "#__weblinks_idx_access" ON "#__weblinks" ("access"); +CREATE INDEX "#__weblinks_idx_checkout" ON "#__weblinks" ("checked_out"); +CREATE INDEX "#__weblinks_idx_state" ON "#__weblinks" ("state"); +CREATE INDEX "#__weblinks_idx_catid" ON "#__weblinks" ("catid"); +CREATE INDEX "#__weblinks_idx_createdby" ON "#__weblinks" ("created_by"); +CREATE INDEX "#__weblinks_idx_featured_catid" ON "#__weblinks" ("featured", "catid"); +CREATE INDEX "#__weblinks_idx_language" ON "#__weblinks" ("language"); +CREATE INDEX "#__weblinks_idx_xreference" ON "#__weblinks" ("xreference"); + +COMMENT ON COLUMN "#__weblinks"."featured" IS 'Set if link is featured.'; +COMMENT ON COLUMN "#__weblinks"."xreference" IS 'A reference to enable linkages to external data sets.'; diff --git a/src/com_weblinks/admin/sql/install.sqlsrv.sql b/src/com_weblinks/admin/sql/install.sqlsrv.sql new file mode 100644 index 0000000..ba1196e --- /dev/null +++ b/src/com_weblinks/admin/sql/install.sqlsrv.sql @@ -0,0 +1,84 @@ +/****** Insert data into table [#__content_types] for UCM functions ******/ +INSERT [#__content_types] ([type_title], [type_alias], [table], [rules], [field_mappings], [router], [content_history_options]) +SELECT 'Weblink', 'com_weblinks.weblink', '{"special":{"dbtable":"#__weblinks","key":"id","type":"Weblink","prefix":"WeblinksTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"title","core_state":"state","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"description", "core_hits":"hits","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access", "core_params":"params", "core_featured":"featured", "core_metadata":"metadata", "core_language":"language", "core_images":"images", "core_urls":"urls", "core_version":"version", "core_ordering":"ordering", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"catid", "core_xreference":"xreference", "asset_id":"null"}, "special":{}}', 'WeblinksHelperRoute::getWeblinkRoute', '{"formFile":"administrator\/components\/com_weblinks\/models\/forms\/weblink.xml", "hideFields":["asset_id","checked_out","checked_out_time","version","featured","images"], "ignoreChanges":["modified_by", "modified", "checked_out", "checked_out_time", "version", "hits"], "convertToInt":["publish_up", "publish_down", "featured", "ordering"], "displayLookup":[{"sourceColumn":"catid","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"created_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"} ]}' +UNION ALL +SELECT 'Weblinks Category', 'com_weblinks.category', '{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description", "core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access", "core_params":"params", "core_featured":"null", "core_metadata":"metadata", "core_language":"language", "core_images":"null", "core_urls":"null", "core_version":"version", "core_ordering":"null", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"parent_id", "core_xreference":"null", "asset_id":"asset_id"}, "special":{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}}', 'WeblinksHelperRoute::getCategoryRoute', '{"formFile":"administrator\/components\/com_categories\/models\/forms\/category.xml", "hideFields":["asset_id","checked_out","checked_out_time","version","lft","rgt","level","path","extension"], "ignoreChanges":["modified_user_id", "modified_time", "checked_out", "checked_out_time", "version", "hits", "path"],"convertToInt":["publish_up", "publish_down"], "displayLookup":[{"sourceColumn":"created_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"parent_id","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"}]}'; + +/****** Object: Table [#__weblinks] ******/ +SET QUOTED_IDENTIFIER ON; + +CREATE TABLE [#__weblinks]( + [id] [bigint] IDENTITY(1,1) NOT NULL, + [catid] [int] NOT NULL DEFAULT 0, + [title] [nvarchar](250) NOT NULL DEFAULT '', + [alias] [nvarchar](255) NOT NULL, + [url] [nvarchar](250) NOT NULL DEFAULT '', + [description] [nvarchar](max) NOT NULL, + [hits] [int] NOT NULL DEFAULT 0, + [state] [smallint] NOT NULL DEFAULT 0, + [checked_out] [int] NOT NULL DEFAULT 0, + [checked_out_time] [datetime] NOT NULL DEFAULT '1900-01-01T00:00:00.000', + [ordering] [int] NOT NULL DEFAULT 0, + [access] [int] NOT NULL DEFAULT 1, + [params] [nvarchar](max) NOT NULL, + [language] [nvarchar](7) NOT NULL DEFAULT '', + [created] [datetime] NOT NULL DEFAULT '1900-01-01T00:00:00.000', + [created_by] [bigint] NOT NULL DEFAULT 0, + [created_by_alias] [nvarchar](255) NOT NULL DEFAULT '', + [modified] [datetime] NOT NULL DEFAULT '1900-01-01T00:00:00.000', + [modified_by] [bigint] NOT NULL DEFAULT 0, + [metakey] [nvarchar](max) NOT NULL, + [metadesc] [nvarchar](max) NOT NULL, + [metadata] [nvarchar](max) NOT NULL, + [featured] [tinyint] NOT NULL DEFAULT 0, + [xreference] [nvarchar](50) NOT NULL, + [publish_up] [datetime] NOT NULL DEFAULT '1900-01-01T00:00:00.000', + [publish_down] [datetime] NOT NULL DEFAULT '1900-01-01T00:00:00.000', + [version] [bigint] NOT NULL DEFAULT 1, + [images] [nvarchar](max) NOT NULL, + CONSTRAINT [PK_#__weblinks_id] PRIMARY KEY CLUSTERED +( + [id] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] +) ON [PRIMARY]; + +CREATE NONCLUSTERED INDEX [idx_access] ON [#__weblinks] +( + [access] ASC +)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF); + +CREATE NONCLUSTERED INDEX [idx_catid] ON [#__weblinks] +( + [catid] ASC +)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF); + +CREATE NONCLUSTERED INDEX [idx_checkout] ON [#__weblinks] +( + [checked_out] ASC +)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF); + +CREATE NONCLUSTERED INDEX [idx_createdby] ON [#__weblinks] +( + [created_by] ASC +)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF); + +CREATE NONCLUSTERED INDEX [idx_featured_catid] ON [#__weblinks] +( + [featured] ASC, + [catid] ASC +)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF); + +CREATE NONCLUSTERED INDEX [idx_language] ON [#__weblinks] +( + [language] ASC +)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF); + +CREATE NONCLUSTERED INDEX [idx_state] ON [#__weblinks] +( + [state] ASC +)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF); + +CREATE NONCLUSTERED INDEX [idx_xreference] ON [#__weblinks] +( + [xreference] ASC +)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF); diff --git a/src/com_weblinks/admin/sql/uninstall.mysql.sql b/src/com_weblinks/admin/sql/uninstall.mysql.sql new file mode 100644 index 0000000..129a8de --- /dev/null +++ b/src/com_weblinks/admin/sql/uninstall.mysql.sql @@ -0,0 +1,3 @@ +DELETE FROM `#__content_types` WHERE `type_alias` IN ('com_weblinks.weblink', 'com_weblinks.category'); + +DROP TABLE IF EXISTS `#__weblinks`; diff --git a/src/com_weblinks/admin/sql/uninstall.mysql.utf8.sql b/src/com_weblinks/admin/sql/uninstall.mysql.utf8.sql deleted file mode 100644 index b53cccc..0000000 --- a/src/com_weblinks/admin/sql/uninstall.mysql.utf8.sql +++ /dev/null @@ -1 +0,0 @@ -DROP TABLE IF EXISTS `#__weblinks`; \ No newline at end of file diff --git a/src/com_weblinks/admin/sql/uninstall.postgresql.sql b/src/com_weblinks/admin/sql/uninstall.postgresql.sql new file mode 100644 index 0000000..db3bb41 --- /dev/null +++ b/src/com_weblinks/admin/sql/uninstall.postgresql.sql @@ -0,0 +1,3 @@ +DELETE FROM "#__content_types" WHERE "type_alias" IN ('com_weblinks.weblink', 'com_weblinks.category'); + +DROP TABLE IF EXISTS "#__weblinks"; diff --git a/src/com_weblinks/admin/sql/uninstall.sqlsrv.sql b/src/com_weblinks/admin/sql/uninstall.sqlsrv.sql new file mode 100644 index 0000000..7d86a15 --- /dev/null +++ b/src/com_weblinks/admin/sql/uninstall.sqlsrv.sql @@ -0,0 +1,3 @@ +DELETE FROM [#__content_types] WHERE [type_alias] IN ('com_weblinks.weblink', 'com_weblinks.category'); + +DROP TABLE IF EXISTS [#__weblinks]; diff --git a/src/com_weblinks/admin/sql/updates/mysql/3.4.0.sql b/src/com_weblinks/admin/sql/updates/mysql/3.4.0.sql new file mode 100644 index 0000000..80c2c0b --- /dev/null +++ b/src/com_weblinks/admin/sql/updates/mysql/3.4.0.sql @@ -0,0 +1 @@ +# Placeholder file to set the extension database schema version diff --git a/src/com_weblinks/admin/sql/updates/postgresql/3.4.0.sql b/src/com_weblinks/admin/sql/updates/postgresql/3.4.0.sql new file mode 100644 index 0000000..80c2c0b --- /dev/null +++ b/src/com_weblinks/admin/sql/updates/postgresql/3.4.0.sql @@ -0,0 +1 @@ +# Placeholder file to set the extension database schema version diff --git a/src/com_weblinks/admin/sql/updates/sqlsrv/3.4.0.sql b/src/com_weblinks/admin/sql/updates/sqlsrv/3.4.0.sql new file mode 100644 index 0000000..80c2c0b --- /dev/null +++ b/src/com_weblinks/admin/sql/updates/sqlsrv/3.4.0.sql @@ -0,0 +1 @@ +# Placeholder file to set the extension database schema version diff --git a/src/com_weblinks/admin/weblinks.xml b/src/com_weblinks/admin/weblinks.xml index c8c1f6a..b1005af 100644 --- a/src/com_weblinks/admin/weblinks.xml +++ b/src/com_weblinks/admin/weblinks.xml @@ -5,23 +5,33 @@ April 2006 (C) 2005 - 2014 Open Source Matters. All rights reserved. - GNU General Public License version 2 or later; see - LICENSE.txt + GNU General Public License version 2 or later; see LICENSE.txt admin@joomla.org www.joomla.org 3.0.0 COM_WEBLINKS_XML_DESCRIPTION - - - sql/install.mysql.utf8.sql - - - - - sql/uninstall.mysql.utf8.sql - - + + + sql/install.mysql.sql + sql/install.postgresql.sql + sql/install.sqlsrv.sql + + + + + sql/uninstall.mysql.sql + sql/uninstall.postgresql.sql + sql/uninstall.sqlsrv.sql + + + + + sql/updates/mysql + sql/updates/postgresql + sql/updates/sqlsrv + + index.html