From becef6f65b0f860e24c9bbfde573a07ded6f228f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=B5nis=20Ormisson?= Date: Tue, 4 Jul 2017 13:33:30 +0300 Subject: [PATCH] FIX: Installation duplicate column hash for prefix_notifications --- installer/sql/create-mssql.sql | 1 - installer/sql/create-mysql.sql | 1 - installer/sql/create-pgsql.sql | 1 - 3 files changed, 3 deletions(-) diff --git a/installer/sql/create-mssql.sql b/installer/sql/create-mssql.sql index e7ee39933d4..c5e3b1f88c9 100644 --- a/installer/sql/create-mssql.sql +++ b/installer/sql/create-mssql.sql @@ -605,7 +605,6 @@ CREATE TABLE prefix_notifications ( [hash] nvarchar(64) DEFAULT NULL, [created] datetime NOT NULL, [first_read] datetime DEFAULT NULL, - [hash] nvarchar(64) DEFAULT '', PRIMARY KEY ([id]) ); CREATE INDEX [notif_index] ON [prefix_notifications] ([entity_id],[entity],[status]); diff --git a/installer/sql/create-mysql.sql b/installer/sql/create-mysql.sql index 3ef2d6abf97..3f06386c113 100644 --- a/installer/sql/create-mysql.sql +++ b/installer/sql/create-mysql.sql @@ -611,7 +611,6 @@ CREATE TABLE IF NOT EXISTS `prefix_notifications` ( `hash` VARCHAR(64) DEFAULT NULL COMMENT 'Hash of title, message and entity to avoid duplication', `created` DATETIME NOT NULL, `first_read` DATETIME DEFAULT NULL, - `hash` VARCHAR(64) DEFAULT '', PRIMARY KEY (`id`), INDEX(`entity`, `entity_id`, `status`), INDEX(`hash`) diff --git a/installer/sql/create-pgsql.sql b/installer/sql/create-pgsql.sql index 7cf5aa2e191..542c31238b6 100644 --- a/installer/sql/create-pgsql.sql +++ b/installer/sql/create-pgsql.sql @@ -614,7 +614,6 @@ CREATE TABLE prefix_notifications ( "hash" character varying(64) DEFAULT NULL, "created" timestamp NOT NULL, "first_read" timestamp DEFAULT NULL, - "hash" character varying(64) DEFAULT '', CONSTRAINT prefix_notifications_pkey PRIMARY KEY (id) ); CREATE INDEX prefix_index ON prefix_notifications USING btree (entity, entity_id, status);