From 9548cb34fdce8ca0b4da1d248a5d0b052316ad1a Mon Sep 17 00:00:00 2001 From: JaguarJack Date: Mon, 13 Apr 2020 15:36:22 +0800 Subject: [PATCH] =?UTF-8?q?permission=E4=BF=AE=E6=94=B9=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../20200409023815_change_permissions.php | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 catch/permissions/database/migrations/20200409023815_change_permissions.php diff --git a/catch/permissions/database/migrations/20200409023815_change_permissions.php b/catch/permissions/database/migrations/20200409023815_change_permissions.php new file mode 100644 index 0000000..fbbd4b0 --- /dev/null +++ b/catch/permissions/database/migrations/20200409023815_change_permissions.php @@ -0,0 +1,41 @@ +table('permissions'); + + $table->addColumn('component', 'string', ['default' => '', 'comment' => '组件名称', 'limit' => '255', 'after' => 'permission_mark']) + ->addColumn('redirect', 'string', ['default' => '', 'comment' => '跳转地址', 'limit' => '255', 'after' => 'component']) + ->addColumn('hide_children_in_menu', 'integer', ['limit' => \Phinx\Db\Adapter\MysqlAdapter::INT_TINY,'default'=> 1,'comment'=>'1 显示 2隐藏', 'after' => 'redirect']) + ->addColumn('keep_alive', 'integer', ['limit' => \Phinx\Db\Adapter\MysqlAdapter::INT_TINY,'default'=> 1,'comment'=>'1 缓存 2 不存在 ', 'after' => 'hide_children_in_menu']) + ->update(); + + + } +}