Skip to content

Commit 6c8b9f5

Browse files
committed
refactor(CRUD):历史记录表的 sync 字段类型由 boolean 改为 int
1 parent a328ae9 commit 6c8b9f5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

database/migrations/20250412134127_version222.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function up(): void
5050
if (!$crudLog->hasColumn('comment')) {
5151
$crudLog
5252
->addColumn('comment', 'string', ['limit' => 255, 'default' => '', 'comment' => '注释', 'null' => false, 'after' => 'table_name'])
53-
->addColumn('sync', 'boolean', ['default' => 0, 'signed' => false, 'comment' => '已同步:0=否,1=是', 'null' => false, 'after' => 'fields'])
53+
->addColumn('sync', 'integer', ['default' => 0, 'signed' => false, 'comment' => '同步记录', 'null' => false, 'after' => 'fields'])
5454
->save();
5555

5656
$logs = CrudLog::select();

0 commit comments

Comments
 (0)