no message

This commit is contained in:
kuaifan 2022-03-31 09:59:49 +08:00
parent 9d56dd122f
commit cfd1fc275b
3 changed files with 4 additions and 4 deletions

View File

@ -15,7 +15,7 @@ class CreateUserEmailVerificationsTable extends Migration
{ {
Schema::create('user_email_verifications', function (Blueprint $table) { Schema::create('user_email_verifications', function (Blueprint $table) {
$table->id(); $table->id();
$table->integer('userid')->nullable()->default(0)->comment('用户id'); $table->bigInteger('userid')->nullable()->default(0)->comment('用户id');
$table->string('code')->nullable()->default('')->comment('验证参数'); $table->string('code')->nullable()->default('')->comment('验证参数');
$table->string('email')->nullable()->default('')->comment('电子邮箱'); $table->string('email')->nullable()->default('')->comment('电子邮箱');
$table->integer('status')->nullable()->default(0)->comment('0-未验证1-已验证'); $table->integer('status')->nullable()->default(0)->comment('0-未验证1-已验证');

View File

@ -15,7 +15,7 @@ class CreateProjectTaskMailLogsTable extends Migration
{ {
Schema::create('project_task_mail_logs', function (Blueprint $table) { Schema::create('project_task_mail_logs', function (Blueprint $table) {
$table->id(); $table->id();
$table->integer('userid')->nullable()->default(0)->comment('用户id'); $table->bigInteger('userid')->nullable()->default(0)->comment('用户id');
$table->integer('task_id')->nullable()->default(0)->comment('任务id'); $table->integer('task_id')->nullable()->default(0)->comment('任务id');
$table->string('email')->nullable()->default('')->comment('电子邮箱'); $table->string('email')->nullable()->default('')->comment('电子邮箱');
$table->tinyInteger('type')->nullable()->default(0)->comment('提醒类型1第一次任务提醒2第二次任务超期提醒'); $table->tinyInteger('type')->nullable()->default(0)->comment('提醒类型1第一次任务提醒2第二次任务超期提醒');

View File

@ -14,10 +14,10 @@ class AddFileLinksUserid extends Migration
public function up() public function up()
{ {
$isAdd = false; $isAdd = false;
Schema::table('file_links', function (Blueprint $table) { Schema::table('file_links', function (Blueprint $table) use (&$isAdd) {
if (!Schema::hasColumn('file_links', 'userid')) { if (!Schema::hasColumn('file_links', 'userid')) {
$isAdd = true; $isAdd = true;
$table->integer('userid')->nullable()->default(0)->after('code')->comment('会员ID'); $table->bigInteger('userid')->nullable()->default(0)->after('code')->comment('会员ID');
} }
}); });
if ($isAdd) { if ($isAdd) {