31
0
mirror of https://github.com/joomla-extensions/patchtester.git synced 2024-05-29 03:50:46 +00:00

Update schema for non-MySQL databases

This commit is contained in:
Michael Babker 2014-05-04 16:55:06 -05:00
parent 62515d1b34
commit fdebf8b6b2
4 changed files with 36 additions and 11 deletions

View File

@ -1,3 +1,13 @@
CREATE TABLE IF NOT EXISTS "#__patchtester_pulls" (
"id" serial NOT NULL,
"pull_id" bigint NOT NULL,
"title" character varying(100) NOT NULL,
"description" character varying(5000) DEFAULT '' NOT NULL,
"pull_url" character varying(255) NOT NULL,
"joomlacode_id" character varying(255) DEFAULT '' NOT NULL,
PRIMARY KEY ("id")
);
CREATE TABLE "#__patchtester_tests" (
"id" serial NOT NULL,
"pull_id" bigint NOT NULL,

View File

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

View File

@ -1,14 +1,27 @@
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
CREATE TABLE IF NOT EXISTS [#__patchtester_pulls] (
[id] [bigint] IDENTITY(1,1) NOT NULL,
[pull_id] [bigint] NOT NULL,
[title] [nvarchar](100) NOT NULL,
[description] [nvarchar](5000) NOT NULL DEFAULT '',
[pull_url] [nvarchar](255) NOT NULL,
[joomlacode_id] [nvarchar](255) NOT NULL DEFAULT '',
CONSTRAINT [PK_#__patchtester_pulls] PRIMARY KEY CLUSTERED
(
[id] ASC
[id] ASC
) WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF)
);
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

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