Skip to content
Snippets Groups Projects
Commit b7ec3b77 authored by Bob Mottram's avatar Bob Mottram
Browse files

Don't need the database workaround

parent 0552e6f1
No related branches found
No related tags found
No related merge requests found
......@@ -148,13 +148,6 @@ function gogs_parameters {
GOGS_BIN="https://dl.gogs.io/${GOGS_VERSION}/${GOGS_FILE}"
}
function gogs_fix_orm_engine {
# Fixes a database bug which prevents gogs from running
# see https://discuss.gogs.io/t/fail-to-initialize-orm-key-too-long/1615/4
run_query gogs "alter table protect_branch modify \`name\` varchar(255) collate utf8_general_ci;"
run_query gogs "alter table protect_branch_whitelist modify \`name\` varchar(255) collate utf8_general_ci;"
}
function gogs_create_database {
if [ -f "${IMAGE_PASSWORD_FILE}" ]; then
GIT_ADMIN_PASSWORD="$(printf "%s" "$(cat "$IMAGE_PASSWORD_FILE")")"
......@@ -789,7 +782,6 @@ function install_gogs {
function_check initialise_database
initialise_database gogs /home/${GOGS_USERNAME}/scripts/mysql.sql
#gogs_fix_orm_engine
systemctl restart gogs
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment