Skip to content

Commit

Permalink
Dev: Remove Cint order table from installer sql; add plugin version c…
Browse files Browse the repository at this point in the history
…olumn
  • Loading branch information
olleharstedt committed Aug 23, 2016
1 parent 2a065c2 commit cb39bfd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 53 deletions.
19 changes: 1 addition & 18 deletions installer/sql/create-mssql.sql
Expand Up @@ -232,6 +232,7 @@ CREATE TABLE [prefix_plugins] (
[id] int NOT NULL identity(1,1),
[name] varchar(50) NOT NULL,
[active] int NOT NULL default '0',
[version] varchar(32) default null,
PRIMARY KEY (id)
);

Expand Down Expand Up @@ -609,24 +610,6 @@ CREATE TABLE prefix_notifications (
CREATE INDEX [notif_index] ON [prefix_notifications] ([entity_id],[entity],[status]);
CREATE INDEX [notif_hash_index] ON [prefix_notifications] ([hash]);

--
-- Cint plugin, active by default
--
INSERT INTO prefix_plugins ([name], [active]) VALUES ('CintLink', 1);
CREATE TABLE prefix_plugin_cintlink_orders (
[url] nvarchar(127) NOT NULL,
[sid] int NOT NULL,
[raw] nvarchar(max),
[country] nvarchar(63),
[status] nvarchar(15),
[ordered_by] int NOT NULL,
[deleted] int DEFAULT 0,
[created] datetime NOT NULL,
[modified] datetime DEFAULT NULL,
PRIMARY KEY([url])
);
CREATE INDEX [cint_index] ON [prefix_plugin_cintlink_orders] ([sid], [deleted], [status]);

--
-- Version Info
--
Expand Down
18 changes: 1 addition & 17 deletions installer/sql/create-mysql.sql
Expand Up @@ -233,6 +233,7 @@ CREATE TABLE `prefix_plugins` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(50) NOT NULL,
`active` int(1) NOT NULL default '0',
`version` varchar(32) default null,
PRIMARY KEY (`id`)
) ENGINE=MYISAM CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

Expand Down Expand Up @@ -615,23 +616,6 @@ CREATE TABLE IF NOT EXISTS `prefix_notifications` (
INDEX(`hash`)
) ENGINE=MYISAM CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

--
-- Cint plugin, active by default
--
INSERT INTO `prefix_plugins` (`name`, `active`) VALUES ('CintLink', 1);
CREATE TABLE IF NOT EXISTS `prefix_plugin_cintlink_orders` (
`url` VARCHAR(127) NOT NULL PRIMARY KEY,
`sid` INT(11) NOT NULL,
`raw` TEXT,
`country` VARCHAR(63),
`status` VARCHAR(15),
`ordered_by` INT(11) NOT NULL,
`deleted` INT DEFAULT 0,
`created` DATETIME NOT NULL,
`modified` DATETIME DEFAULT NULL,
INDEX(`sid`, `deleted`, `status`)
) ENGINE=MYISAM CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

--
-- Version Info
--
Expand Down
19 changes: 1 addition & 18 deletions installer/sql/create-pgsql.sql
Expand Up @@ -237,6 +237,7 @@ CREATE TABLE prefix_plugins (
"id" serial NOT NULL,
"name" character varying(50) NOT NULL,
"active" integer NOT NULL default '0',
"version" character varying(32) default NULL,
CONSTRAINT prefix_plugins_pkey PRIMARY KEY (id)
);

Expand Down Expand Up @@ -618,24 +619,6 @@ CREATE TABLE prefix_notifications (
CREATE INDEX prefix_index ON prefix_notifications USING btree (entity, entity_id, status);
CREATE INDEX hash_index ON prefix_notifications USING btree (hash);

--
-- Cint plugin, active by default
--
INSERT INTO "prefix_plugins" ("name", "active") VALUES ('CintLink', 1);
CREATE TABLE prefix_plugin_cintlink_orders (
"url" character varying(127) NOT NULL,
"sid" integer NOT NULL,
"raw" TEXT,
"country" character varying(63),
"status" character varying(15),
"ordered_by" INTEGER NOT NULL,
"deleted" INTEGER DEFAULT 0,
"created" TIMESTAMP NOT NULL,
"modified" TIMESTAMP DEFAULT NULL,
CONSTRAINT prefix_cint_pkey PRIMARY KEY(url)
);
CREATE INDEX cint_index ON prefix_plugin_cintlink_orders USING btree (sid, deleted, status);

--
-- Version Info
--
Expand Down

0 comments on commit cb39bfd

Please sign in to comment.