| xqd
@@ -4,7 +4,7 @@ use Illuminate\Support\Facades\Schema;
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
|
|
-class CreateUserDreamTable extends Migration
|
|
|
+class CreateSupportDreamInfoTable extends Migration
|
|
|
{
|
|
|
/**
|
|
|
* Run the migrations.
|
| xqd
@@ -13,10 +13,12 @@ class CreateUserDreamTable extends Migration
|
|
|
*/
|
|
|
public function up()
|
|
|
{
|
|
|
- Schema::create('user_dream', function (Blueprint $table) {
|
|
|
+ Schema::create('support_dream_info', function (Blueprint $table) {
|
|
|
$table->increments('id');
|
|
|
- $table->integer('user_id')->comment('用户ID');
|
|
|
- $table->integer('dream_id')->comment('梦想ID');
|
|
|
+ $table->integer('user_id')->comment('当前用户ID');
|
|
|
+ $table->integer('dram_id')->comment('梦想ID');
|
|
|
+ $table->integer('coin')->comment('充值梦想币数量');
|
|
|
+ $table->integer('score')->comment('支持分数');
|
|
|
$table->timestamps();
|
|
|
});
|
|
|
}
|
| xqd
@@ -28,6 +30,6 @@ class CreateUserDreamTable extends Migration
|
|
|
*/
|
|
|
public function down()
|
|
|
{
|
|
|
- Schema::dropIfExists('goods_group');
|
|
|
+ Schema::dropIfExists('support_dream_info');
|
|
|
}
|
|
|
}
|