File tree Expand file tree Collapse file tree 3 files changed +35
-2
lines changed Expand file tree Collapse file tree 3 files changed +35
-2
lines changed Original file line number Diff line number Diff line change 11
11
use App \Meedu \Core \UpgradeLog \UpgradeTo48 ;
12
12
use App \Meedu \Core \UpgradeLog \UpgradeToV4 ;
13
13
use App \Meedu \Core \UpgradeLog \UpgradeV493 ;
14
+ use App \Meedu \Core \UpgradeLog \UpgradeV498 ;
14
15
use App \Meedu \Core \UpgradeLog \UpgradeToV42 ;
15
16
use App \Meedu \Core \UpgradeLog \UpgradeToV45 ;
16
17
use App \Meedu \Core \UpgradeLog \UpgradeToV46 ;
@@ -27,5 +28,6 @@ public function run()
27
28
UpgradeToV46::handle ();
28
29
UpgradeTo48::handle ();
29
30
UpgradeV493::handle ();
31
+ UpgradeV498::handle ();
30
32
}
31
33
}
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ /*
4
+ * This file is part of the MeEdu.
5
+ *
6
+ * (c) 杭州白书科技有限公司
7
+ */
8
+
9
+ namespace App \Meedu \Core \UpgradeLog ;
10
+
11
+ use App \Meedu \ServiceV2 \Models \AppConfig ;
12
+
13
+ class UpgradeV498
14
+ {
15
+
16
+ public static function handle ()
17
+ {
18
+ self ::removeAppConfig ();
19
+ }
20
+
21
+ private static function removeAppConfig ()
22
+ {
23
+ AppConfig::query ()
24
+ ->whereIn ('key ' , [
25
+ 'meedu.member.protocol ' ,
26
+ 'meedu.member.private_protocol ' ,
27
+ ])
28
+ ->update (['field_type ' => 'textarea ' ]);
29
+ }
30
+
31
+ }
Original file line number Diff line number Diff line change @@ -849,7 +849,7 @@ public function run()
849
849
[
850
850
'group ' => '会员 ' ,
851
851
'name ' => '会员协议 ' ,
852
- 'field_type ' => 'longtext ' ,
852
+ 'field_type ' => 'textarea ' ,
853
853
'sort ' => 4 ,
854
854
'default_value ' => '' ,
855
855
'key ' => 'meedu.member.protocol ' ,
@@ -858,7 +858,7 @@ public function run()
858
858
[
859
859
'group ' => '会员 ' ,
860
860
'name ' => '会员隐私协议 ' ,
861
- 'field_type ' => 'longtext ' ,
861
+ 'field_type ' => 'textarea ' ,
862
862
'sort ' => 5 ,
863
863
'default_value ' => '' ,
864
864
'key ' => 'meedu.member.private_protocol ' ,
You can’t perform that action at this time.
0 commit comments