33
0
mirror of https://github.com/joomla-extensions/patchtester.git synced 2024-12-23 03:19:00 +00:00

Multi database support

This commit is contained in:
Michael Babker 2013-08-12 16:05:52 -05:00
parent ebb396869e
commit 1c3edbd5d8
11 changed files with 79 additions and 38 deletions

View File

@ -1 +0,0 @@
DROP TABLE IF EXISTS `#__patchtester_tests`

View File

@ -0,0 +1 @@
DROP TABLE IF EXISTS `#__patchtester_tests`;

View File

@ -0,0 +1,11 @@
CREATE TABLE "#__patchtester_tests" (
"id" serial NOT NULL,
"pull_id" bigint NOT NULL,
"data" text NOT NULL,
"patched_by" bigint NOT NULL,
"applied" bigint NOT NULL,
"applied_version" character varying(25) NOT NULL,
"rating" bigint NOT NULL,
"comments" character varying(3000) DEFAULT '' NOT NULL,
PRIMARY KEY ("id")
);

View File

@ -0,0 +1 @@
DROP TABLE IF EXISTS "#__patchtester_tests";

View File

@ -0,0 +1,14 @@
CREATE TABLE [#__patchtester_tests](
[id] [bigint] IDENTITY(1,1) NOT NULL,
[pull_id] [bigint] NOT NULL,
[data] [nvarchar](MAX) NULL,
[patched_by] [bigint] NOT NULL,
[applied] [bigint] NOT NULL,
[applied_version] [nvarchar](25) NOT NULL,
[rating] [bigint] NOT NULL,
[comments] [nvarchar](255) NOT NULL DEFAULT '',
CONSTRAINT [PK_#__patchtester_tests] PRIMARY KEY CLUSTERED
(
[id] ASC
) WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF)
);

View File

@ -0,0 +1 @@
DROP TABLE [#__patchtester_tests];

View File

@ -0,0 +1 @@
# Placeholder file to set the database schema version to 2.0.0

View File

@ -0,0 +1 @@
# Placeholder file to set the database schema version to 2.0.0

View File

@ -0,0 +1 @@
# Placeholder file to set the database schema version to 2.0.0

View File

@ -1,40 +1,51 @@
<?xml version="1.0" encoding="UTF-8"?>
<extension type="component" version="3.1" method="upgrade">
<name>com_patchtester</name>
<author>Joomla! Project</author>
<creationDate>October 2011</creationDate>
<copyright>(C) 2011 - 2012 Ian MacLennan, (C) 2013 Open Source Matters, Inc. All rights reserved.</copyright>
<license>GNU General Public License version 2 or later</license>
<authorEmail>admin@joomla.org</authorEmail>
<authorUrl>http://www.joomla.org</authorUrl>
<version>2.0.0.alpha</version>
<description>COM_PATCHTESTER_XML_DESCRIPTION</description>
<install>
<sql>
<file driver="mysql" charset="utf8">install/sql/mysql/install.mysql.utf8.sql</file>
</sql>
</install>
<uninstall>
<sql>
<file driver="mysql" charset="utf8">install/sql/mysql/uninstall.mysql.utf8.sql</file>
</sql>
</uninstall>
<administration>
<menu img="components/com_patchtester/assets/images/icon-16-patchtester.png">com_patchtester</menu>
<files folder="admin">
<folder>assets</folder>
<folder>backups</folder>
<folder>controllers</folder>
<folder>helpers</folder>
<folder>install</folder>
<folder>language</folder>
<folder>models</folder>
<folder>tables</folder>
<folder>views</folder>
<filename>access.xml</filename>
<filename>config.xml</filename>
<filename>controller.php</filename>
<filename>patchtester.php</filename>
</files>
</administration>
<name>com_patchtester</name>
<author>Joomla! Project</author>
<creationDate>October 2011</creationDate>
<copyright>(C) 2011 - 2012 Ian MacLennan, (C) 2013 Open Source Matters, Inc. All rights reserved.</copyright>
<license>GNU General Public License version 2 or later</license>
<authorEmail>admin@joomla.org</authorEmail>
<authorUrl>http://www.joomla.org</authorUrl>
<version>2.0.0.alpha</version>
<description>COM_PATCHTESTER_XML_DESCRIPTION</description>
<install>
<sql>
<file driver="mysql" charset="utf8">install/sql/mysql/install.sql</file>
<file driver="postgresql" charset="utf8">install/sql/postgresql/install.sql</file>
<file driver="sqlsrv" charset="utf8">install/sql/sqlsrv/install.sql</file>
</sql>
</install>
<uninstall>
<sql>
<file driver="mysql" charset="utf8">install/sql/mysql/uninstall.sql</file>
<file driver="postgresql" charset="utf8">install/sql/postgresql/uninstall.sql</file>
<file driver="sqlsrv" charset="utf8">install/sql/sqlsrv/uninstall.sql</file>
</sql>
</uninstall>
<update>
<schemas>
<schemapath type="mysql">install/sql/updates/mysql</schemapath>
<schemapath type="postgresql">install/sql/updates/postgresql</schemapath>
<schemapath type="sqlsrv">install/sql/updates/sqlsrv</schemapath>
</schemas>
</update>
<administration>
<menu img="components/com_patchtester/assets/images/icon-16-patchtester.png">com_patchtester</menu>
<files folder="admin">
<folder>assets</folder>
<folder>backups</folder>
<folder>controllers</folder>
<folder>helpers</folder>
<folder>install</folder>
<folder>language</folder>
<folder>models</folder>
<folder>tables</folder>
<folder>views</folder>
<filename>access.xml</filename>
<filename>config.xml</filename>
<filename>controller.php</filename>
<filename>patchtester.php</filename>
</files>
</administration>
</extension>