mirror of
https://github.com/joomla-extensions/patchtester.git
synced 2025-02-02 11:58:26 +00:00
Put initial 2.0 SQL schema in update files (Ref #186)
This commit is contained in:
parent
6d28777d1f
commit
e9c99d9a1c
@ -1 +1,20 @@
|
|||||||
# Placeholder file to set the database schema version to 2.0.0
|
CREATE TABLE IF NOT EXISTS `#__patchtester_pulls` (
|
||||||
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
|
`pull_id` int(11) NOT NULL,
|
||||||
|
`title` varchar(200) NOT NULL,
|
||||||
|
`description` varchar(150) NOT NULL DEFAULT '',
|
||||||
|
`pull_url` varchar(255) NOT NULL,
|
||||||
|
`sha` varchar(40) NOT NULL DEFAULT '',
|
||||||
|
`branch` varchar(255) NOT NULL DEFAULT '',
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;
|
||||||
|
|
||||||
|
CREATE TABLE IF NOT EXISTS `#__patchtester_tests` (
|
||||||
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
|
`pull_id` int(11) NOT NULL,
|
||||||
|
`data` longtext NOT NULL,
|
||||||
|
`patched_by` int(11) NOT NULL,
|
||||||
|
`applied` int(11) NOT NULL,
|
||||||
|
`applied_version` varchar(25) NOT NULL,
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;
|
||||||
|
@ -1 +1,20 @@
|
|||||||
# Placeholder file to set the database schema version to 2.0.0
|
CREATE TABLE IF NOT EXISTS "#__patchtester_pulls" (
|
||||||
|
"id" serial NOT NULL,
|
||||||
|
"pull_id" bigint NOT NULL,
|
||||||
|
"title" character varying(200) NOT NULL,
|
||||||
|
"description" character varying(150) DEFAULT '' NOT NULL,
|
||||||
|
"pull_url" character varying(255) NOT NULL,
|
||||||
|
"sha" character varying(40) DEFAULT '' NOT NULL,
|
||||||
|
"branch" character varying(255) DEFAULT '' NOT NULL,
|
||||||
|
PRIMARY KEY ("id")
|
||||||
|
);
|
||||||
|
|
||||||
|
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,
|
||||||
|
PRIMARY KEY ("id")
|
||||||
|
);
|
||||||
|
@ -1 +1,26 @@
|
|||||||
# Placeholder file to set the database schema version to 2.0.0
|
CREATE TABLE [#__patchtester_pulls] (
|
||||||
|
[id] [bigint] IDENTITY(1,1) NOT NULL,
|
||||||
|
[pull_id] [bigint] NOT NULL,
|
||||||
|
[title] [nvarchar](200) NOT NULL,
|
||||||
|
[description] [nvarchar](150) NOT NULL DEFAULT '',
|
||||||
|
[pull_url] [nvarchar](255) NOT NULL,
|
||||||
|
[sha] [nvarchar](40) NOT NULL DEFAULT '',
|
||||||
|
[branch] [nvarchar](255) NOT NULL DEFAULT '',
|
||||||
|
CONSTRAINT [PK_#__patchtester_pulls] PRIMARY KEY CLUSTERED
|
||||||
|
(
|
||||||
|
[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,
|
||||||
|
CONSTRAINT [PK_#__patchtester_tests] PRIMARY KEY CLUSTERED
|
||||||
|
(
|
||||||
|
[id] ASC
|
||||||
|
) WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF)
|
||||||
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user