From a13047c8555f6ba0c9cc01a1e68944595af13486 Mon Sep 17 00:00:00 2001 From: Anye <53684988+Anyexyz@users.noreply.github.com> Date: Sat, 4 Jan 2025 10:44:41 +0800 Subject: [PATCH] Update Default PHP Extensions (#7637) --- backend/init/migration/migrations/v_1_9.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/init/migration/migrations/v_1_9.go b/backend/init/migration/migrations/v_1_9.go index ab2f6b0ef..0a5bed75b 100644 --- a/backend/init/migration/migrations/v_1_9.go +++ b/backend/init/migration/migrations/v_1_9.go @@ -121,7 +121,7 @@ var AddTablePHPExtensions = &gormigrate.Migration{ if err := tx.AutoMigrate(&model.PHPExtensions{}); err != nil { return err } - if err := tx.Create(&model.PHPExtensions{Name: "Default", Extensions: "bcmath,gd,gettext,intl,pcntl,shmop,soap,sockets,sysvsem,xmlrpc,zip"}).Error; err != nil { + if err := tx.Create(&model.PHPExtensions{Name: "Default", Extensions: "bcmath,ftp,gd,gettext,intl,mysqli,pcntl,pdo_mysql,shmop,soap,sockets,sysvsem,xmlrpc,zip"}).Error; err != nil { return err } if err := tx.Create(&model.PHPExtensions{Name: "WordPress", Extensions: "exif,igbinary,imagick,intl,zip,apcu,memcached,opcache,redis,bc,image,shmop,mysqli,pdo_mysql,gd"}).Error; err != nil {