www.gusucode.com > Flarum PHP论坛 中文版 v0.1 beta7源码程序 > FlarumChina-master/vendor/antoinefr/flarum-ext-money/migrations/2017_01_22_000000_change_money_to_float.php
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Builder; return [ 'up' => function (Builder $schema) { $schema->table('users', function (Blueprint $table) { $table->float('money')->default(0)->change(); }); }, 'down' => function (Builder $schema) { $schema->table('users', function (Blueprint $table) { $table->integer('money')->default(0)->change(); }); } ];