mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 11:19:56 +00:00
no message
This commit is contained in:
parent
88553872fc
commit
9b01e076f5
@ -12,7 +12,6 @@ namespace App\Models;
|
||||
* @property string|null $color 颜色
|
||||
* @property \Illuminate\Support\Carbon|null $created_at
|
||||
* @property \Illuminate\Support\Carbon|null $updated_at
|
||||
* @property int|null $tag_id 标签ID
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|AbstractModel cancelAppend()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|AbstractModel cancelHidden()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|AbstractModel change($array)
|
||||
@ -27,7 +26,6 @@ namespace App\Models;
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|ProjectTaskTag whereId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|ProjectTaskTag whereName($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|ProjectTaskTag whereProjectId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|ProjectTaskTag whereTagId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|ProjectTaskTag whereTaskId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|ProjectTaskTag whereUpdatedAt($value)
|
||||
* @mixin \Eloquent
|
||||
|
||||
506
composer.lock
generated
506
composer.lock
generated
File diff suppressed because it is too large
Load Diff
@ -1,35 +0,0 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class AddTagIdFieldsToPreProjectTaskTagsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('project_task_tags', function (Blueprint $table) {
|
||||
if (!Schema::hasColumn('project_task_tags', 'tag_id')) {
|
||||
$table->bigInteger('tag_id')->nullable()->default(0)->comment('标签ID');
|
||||
$table->index('tag_id');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('project_task_tags', function (Blueprint $table) {
|
||||
$table->dropColumn('tag_id');
|
||||
});
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user