mirror of
https://github.com/roundcube/roundcubemail.git
synced 2026-02-20 01:21:20 +01:00
Fix bug where it wasn't possible to create more than one response record on SQLite and Postgres (#8664)
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
- Fix bug where renamed options were removed from the config on installto.sh (update.sh) run (#8643)
|
||||
- Fix favicon rewrite rule in .htaccess (#8654)
|
||||
- Fix various PHP 8.2 warnings
|
||||
- Fix bug where it wasn't possible to create more than one response record on SQLite and Postgres (#8664)
|
||||
|
||||
## Release 1.6.0
|
||||
|
||||
|
||||
@@ -486,6 +486,6 @@ CREATE TRIGGER [contact_delete_member] ON [dbo].[contacts]
|
||||
WHERE [contact_id] IN (SELECT [contact_id] FROM deleted)
|
||||
GO
|
||||
|
||||
INSERT INTO [dbo].[system] ([name], [value]) VALUES ('roundcube-version', '2021100300')
|
||||
INSERT INTO [dbo].[system] ([name], [value]) VALUES ('roundcube-version', '2022081200')
|
||||
GO
|
||||
|
||||
1
SQL/mssql/2022081200.sql
Normal file
1
SQL/mssql/2022081200.sql
Normal file
@@ -0,0 +1 @@
|
||||
-- SQLite/Postgres only
|
||||
@@ -260,4 +260,4 @@ CREATE TABLE `system` (
|
||||
|
||||
SET FOREIGN_KEY_CHECKS=1;
|
||||
|
||||
INSERT INTO `system` (`name`, `value`) VALUES ('roundcube-version', '2021100300');
|
||||
INSERT INTO `system` (`name`, `value`) VALUES ('roundcube-version', '2022081200');
|
||||
|
||||
1
SQL/mysql/2022081200.sql
Normal file
1
SQL/mysql/2022081200.sql
Normal file
@@ -0,0 +1 @@
|
||||
-- SQLite/Postgres only
|
||||
@@ -285,4 +285,4 @@ CREATE TABLE "system" (
|
||||
"value" long
|
||||
);
|
||||
|
||||
INSERT INTO "system" ("name", "value") VALUES ('roundcube-version', '2021100300');
|
||||
INSERT INTO "system" ("name", "value") VALUES ('roundcube-version', '2022081200');
|
||||
|
||||
1
SQL/oracle/2022081200.sql
Normal file
1
SQL/oracle/2022081200.sql
Normal file
@@ -0,0 +1 @@
|
||||
-- SQLite/Postgres only
|
||||
@@ -375,4 +375,4 @@ CREATE TABLE "system" (
|
||||
value text
|
||||
);
|
||||
|
||||
INSERT INTO "system" (name, value) VALUES ('roundcube-version', '2021100300');
|
||||
INSERT INTO "system" (name, value) VALUES ('roundcube-version', '2022081200');
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
ALTER TABLE "filestore" ADD COLUMN context varchar(32) NOT NULL;
|
||||
ALTER TABLE "filestore" ADD COLUMN context varchar(32);
|
||||
UPDATE "filestore" SET context = 'enigma';
|
||||
ALTER TABLE "filestore" ALTER COLUMN context SET NOT NULL;
|
||||
ALTER TABLE "filestore" DROP CONSTRAINT "filestore_user_id_filename";
|
||||
ALTER TABLE "filestore" ADD CONSTRAINT "filestore_user_id_context_filename" UNIQUE (user_id, context, filename);
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
|
||||
CREATE SEQUENCE collected_addresses_seq
|
||||
START WITH 1
|
||||
INCREMENT BY 1
|
||||
|
||||
2
SQL/postgres/2022081200.sql
Normal file
2
SQL/postgres/2022081200.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
DROP INDEX responses_user_id_idx;
|
||||
CREATE INDEX responses_user_id_idx ON responses (user_id, del);
|
||||
@@ -260,4 +260,4 @@ CREATE TABLE system (
|
||||
value text NOT NULL
|
||||
);
|
||||
|
||||
INSERT INTO system (name, value) VALUES ('roundcube-version', '2021100300');
|
||||
INSERT INTO system (name, value) VALUES ('roundcube-version', '2022081200');
|
||||
|
||||
2
SQL/sqlite/2022081200.sql
Normal file
2
SQL/sqlite/2022081200.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
DROP INDEX ix_responses_user_id;
|
||||
CREATE INDEX ix_responses_user_id ON responses(user_id, del);
|
||||
Reference in New Issue
Block a user