baidu tuison
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user