1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-02 23:48:47 +00:00

fix bug when sqlite to mysql (#5980)

* fix bug when sqlite to mysql

remove reporter field in custom_share_permission

* update
This commit is contained in:
lian
2024-03-16 19:36:18 +08:00
committed by GitHub
parent c42461f379
commit f78b86c34c
2 changed files with 4 additions and 1 deletions

View File

@@ -89,6 +89,9 @@ else
fi
fi
# remove reporter field in custom_share_permission
sed 's/`permission` , `reporter` text NOT NULL/`permission` longtext NOT NULL/g' ${SEAHUB_DB} > ${SEAHUB_DB}.tmp && mv ${SEAHUB_DB}.tmp ${SEAHUB_DB}
# change username from VARCHAR(256) to VARCHAR(255) in wiki_personalwiki
sed 's/varchar(256) NOT NULL UNIQUE/varchar(255) NOT NULL UNIQUE/g' ${SEAHUB_DB} > ${SEAHUB_DB}.tmp && mv ${SEAHUB_DB}.tmp ${SEAHUB_DB}