发布新版本

This commit is contained in:
2023-11-02 21:01:01 +08:00
parent 1e5502fdca
commit 2bc65b9acf
3 changed files with 46 additions and 2 deletions

View File

@@ -0,0 +1,36 @@
<?php
use think\migration\db\Column;
use think\migration\Migrator;
class MallGoodsAppendFieldProperty extends Migrator
{
/**
* Change Method.
*
* Write your reversible migrations using this method.
*
* More information on writing migrations is available here:
* http://docs.phinx.org/en/latest/migrations.html#the-abstractmigration-class
*
* The following commands can be used in this method and Phinx will
* automatically reverse them when rolling back:
*
* createTable
* renameTable
* addColumn
* renameColumn
* addIndex
* addForeignKey
*
* Remember to call "create()" or "update()" and NOT "save()" when working
* with the Table class.
*/
public function change()
{
$table = $this->table('mall_goods');
$table->addColumn(Column::text('property_static')->setComment('属性(静态字段)'));
$table->update();
}
}

View File

@@ -1,4 +1,5 @@
<?php
// 升级的注意事项
return [
[
@@ -10,4 +11,10 @@ return [
'调整了AdminUpdateServiceBase的代码的文件名和类名可能需要手动修改或删除旧的文件',
],
],
[
'version' => 'v2.0.64',
'desc' => [
'商品表增加了自定义字段的属性输入字段,用于系统商品代码演示',
],
],
];

View File

@@ -12,12 +12,13 @@ use think\console\Output;
class VersionBase extends Command
{
public const VERSION = 'v2.0.63';
public const VERSION = 'v2.0.64';
public const LAYUI_VERSION = '2.8.17';
public const COMMENT = [
'修改更新逻辑',
'属性输入组件增加拖动排序,自定义列',
'给商品表增加字段',
'发布新版本',
];