25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Merge pull request #4259 from heyanyanchina123/fix_mysql

[fix] fix mysql.sql archive origin_id
This commit is contained in:
Paweł Chmielowski 2024-07-18 09:40:25 +02:00 committed by GitHub
commit 97c2d6a29d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -110,7 +110,7 @@ CREATE INDEX i_timestamp USING BTREE ON archive(timestamp);
CREATE INDEX i_archive_username_origin_id USING BTREE ON archive(username(191), origin_id(191)); CREATE INDEX i_archive_username_origin_id USING BTREE ON archive(username(191), origin_id(191));
-- To update 'archive' from ejabberd <= 23.10: -- To update 'archive' from ejabberd <= 23.10:
-- ALTER TABLE archive ADD COLUMN origin_id text NOT NULL DEFAULT ''; -- ALTER TABLE archive ADD COLUMN origin_id origin_id(191) NOT NULL DEFAULT '';
-- ALTER TABLE archive ALTER COLUMN origin_id DROP DEFAULT; -- ALTER TABLE archive ALTER COLUMN origin_id DROP DEFAULT;
-- CREATE INDEX i_archive_username_origin_id USING BTREE ON archive(username(191), origin_id(191)); -- CREATE INDEX i_archive_username_origin_id USING BTREE ON archive(username(191), origin_id(191));