mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-01 15:32:48 +08:00
发布新版本
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
// 升级的注意事项
|
||||
return [
|
||||
[
|
||||
@@ -10,4 +11,10 @@ return [
|
||||
'调整了AdminUpdateServiceBase的代码的文件名和类名,可能需要手动修改或删除旧的文件',
|
||||
],
|
||||
],
|
||||
[
|
||||
'version' => 'v2.0.64',
|
||||
'desc' => [
|
||||
'商品表增加了自定义字段的属性输入字段,用于系统商品代码演示',
|
||||
],
|
||||
],
|
||||
];
|
||||
|
||||
@@ -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 = [
|
||||
'修改更新逻辑',
|
||||
'属性输入组件增加拖动排序,自定义列',
|
||||
'给商品表增加字段',
|
||||
'发布新版本',
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user