|
|
@@ -12,9 +12,15 @@ class CreateCronJobLog extends AbstractMigration
|
|
|
'comment' => '定时任务执行日志',
|
|
|
'engine' => 'InnoDB',
|
|
|
'collation' => 'utf8mb4_general_ci',
|
|
|
+ 'id' => false,
|
|
|
+ 'primary_key' => ['id'],
|
|
|
]);
|
|
|
|
|
|
- $table->addColumn('name', 'string', [
|
|
|
+ $table->addColumn('id', 'biginteger', [
|
|
|
+ 'identity' => true,
|
|
|
+ 'signed' => false,
|
|
|
+ 'comment' => '主键'
|
|
|
+ ])->addColumn('name', 'string', [
|
|
|
'limit' => 100,
|
|
|
'null' => false,
|
|
|
'comment' => '任务名称'
|