From a239e9d4ed13578b055fcba6f5d0fee559531ffd Mon Sep 17 00:00:00 2001 From: denghy Date: Sat, 11 Jan 2020 20:30:12 +0800 Subject: [PATCH] platform_type --- ..._11_202554_add_virtual_device_platform.php | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 database/migrations/2020_01_11_202554_add_virtual_device_platform.php diff --git a/database/migrations/2020_01_11_202554_add_virtual_device_platform.php b/database/migrations/2020_01_11_202554_add_virtual_device_platform.php new file mode 100644 index 00000000..a8698256 --- /dev/null +++ b/database/migrations/2020_01_11_202554_add_virtual_device_platform.php @@ -0,0 +1,32 @@ +integer('platform_type')->unsigned()->default(0)->comment('平台类型'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('virtual_devices', function (Blueprint $table) { + $table->dropColumn('platform_type'); + }); + } +}