From 93cdee80ed8e7f60e617c4089f69d31dcf7bfe3c Mon Sep 17 00:00:00 2001
From: haha <heyanyanchina@gmail.com>
Date: Thu, 18 Jul 2024 15:14:39 +0800
Subject: [PATCH] [fix] fix mysql.sql archive origin_id

---
 sql/mysql.sql | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sql/mysql.sql b/sql/mysql.sql
index 84ef27387..e7de710a9 100644
--- a/sql/mysql.sql
+++ b/sql/mysql.sql
@@ -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));
 
 -- 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;
 -- CREATE INDEX i_archive_username_origin_id USING BTREE ON archive(username(191), origin_id(191));