From c9f820f9cc1223f99ff04d01f31f4336666c5f67 Mon Sep 17 00:00:00 2001 From: linyaostalker <602604991@qq.com> Date: Tue, 17 Dec 2019 10:22:28 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E4=BF=AE=E6=94=B9=E8=AF=84=E8=AE=BA?= =?UTF-8?q?=E8=A1=A8=E4=B8=AD=E7=9A=84=E6=98=9F=E7=BA=A7=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...pdate_column_star_in_table_ats_comment.php | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 backend/modules/shop/migrations/m191217_021455_update_column_star_in_table_ats_comment.php diff --git a/backend/modules/shop/migrations/m191217_021455_update_column_star_in_table_ats_comment.php b/backend/modules/shop/migrations/m191217_021455_update_column_star_in_table_ats_comment.php new file mode 100644 index 0000000..921cc04 --- /dev/null +++ b/backend/modules/shop/migrations/m191217_021455_update_column_star_in_table_ats_comment.php @@ -0,0 +1,20 @@ +dropColumn('ats_comment', 'star'); + $this->addColumn('ats_comment', 'star', $this->integer(11)->notNull()->defaultValue("0")->comment('星级')); + } + + public function down() + { + return true; + } +}