baidu tuison

This commit is contained in:
make
2026-01-19 21:58:00 +08:00
parent 0323018c8c
commit 934ead3e11
10 changed files with 1075 additions and 466 deletions

View File

@@ -0,0 +1,27 @@
<?php
use think\migration\Migrator;
use think\migration\db\Column;
class AddBaiduTokenToVideoTable extends Migrator
{
public function up()
{
$table = $this->table('domain');
$table
->addColumn(
Column::string('d_baidu_token', 255)
->setNullable(true)
->setComment('百度推送token')
)
->update();
}
public function down()
{
$table = $this->table('domain');
$table
->removeColumn('d_baidu_token')
->update();
}
}