File tree Expand file tree Collapse file tree 2 files changed +47
-1
lines changed Expand file tree Collapse file tree 2 files changed +47
-1
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ /**
4
+ * SPDX-License-Identifier: MIT
5
+ * Copyright (c) 2017-2018 Tobias Reich
6
+ * Copyright (c) 2018-2025 LycheeOrg.
7
+ */
8
+
9
+ use Illuminate \Database \Migrations \Migration ;
10
+ use Illuminate \Support \Facades \Artisan ;
11
+ use Illuminate \Support \Facades \DB ;
12
+ use Symfony \Component \Console \Output \ConsoleOutput ;
13
+ use Symfony \Component \Console \Output \ConsoleSectionOutput ;
14
+
15
+ return new class () extends Migration {
16
+ private ConsoleOutput $ output ;
17
+ private ConsoleSectionOutput $ msg_section ;
18
+
19
+ public function __construct ()
20
+ {
21
+ $ this ->output = new ConsoleOutput ();
22
+ $ this ->msg_section = $ this ->output ->section ();
23
+ }
24
+
25
+ /**
26
+ * Run the migrations.
27
+ *
28
+ * @return void
29
+ */
30
+ public function up (): void
31
+ {
32
+ DB ::table ('configs ' )->where ('key ' , 'version ' )->update (['value ' => '060606 ' ]);
33
+ Artisan::call ('cache:clear ' );
34
+ $ this ->msg_section ->writeln ('<info>Info:</info> Cleared cache for version 6.6.6 ' );
35
+ }
36
+
37
+ /**
38
+ * Reverse the migrations.
39
+ *
40
+ * @return void
41
+ */
42
+ public function down (): void
43
+ {
44
+ DB ::table ('configs ' )->where ('key ' , 'version ' )->update (['value ' => '060605 ' ]);
45
+ }
46
+ };
Original file line number Diff line number Diff line change 1
- 6.6.5
1
+ 6.6.6
You can’t perform that action at this time.
0 commit comments