Skip to content

Commit 55158a3

Browse files
committed
feat(super-magic-module): add is_hidden column to magic_super_agent_task_files table for file visibility control
1 parent 4762efb commit 55158a3

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
/**
5+
* Copyright (c) The Magic , Distributed under the software license
6+
*/
7+
8+
use Hyperf\Database\Migrations\Migration;
9+
use Hyperf\Database\Schema\Blueprint;
10+
use Hyperf\Database\Schema\Schema;
11+
12+
class AddIsHiddenToMagicSuperAgentTaskFilesTable extends Migration
13+
{
14+
/**
15+
* Run the migrations.
16+
*/
17+
public function up(): void
18+
{
19+
Schema::table('magic_super_agent_task_files', function (Blueprint $table) {
20+
$table->tinyInteger('is_hidden')->default(0)->comment('是否为隐藏文件:0-否,1-是');
21+
});
22+
}
23+
24+
/**
25+
* Reverse the migrations.
26+
*/
27+
public function down(): void
28+
{
29+
Schema::table('magic_super_agent_task_files', function (Blueprint $table) {
30+
$table->dropColumn('is_hidden');
31+
});
32+
}
33+
}

0 commit comments

Comments
 (0)