主要记录一下数据表方面的修改

1.研报表

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

2.研报员表(研报员认证时,首页不能显示分类名称的,因为两张表不方便关联查询,所以只能显示分类id)

3.user_data增加研报数量和研报员认证状态

public function up()
{
Schema::table('user_data', function (Blueprint $table) {
$table->integer('researches')->unsigned()->default(0)->after('courses')->comment('研报数');
$table->unsignedTinyInteger('researcher_status')->default(0)->comment('研报员认证状态'); //研报员认证状态
});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('user_data', function (Blueprint $table) {
$table->dropColumn(['researches'],['researcher_status']);
});
}

4.user_tags增加研报数量(话题)

public function up()
    {
        Schema::table('user_tags', function (Blueprint $table) {
            $table->integer('researches')->unsigned()->default(0)->after('articles')->comment('研报数');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('user_tags', function (Blueprint $table) {
            $table->dropColumn(['researches']);
        });
    }

 

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄