From e032d29c919da2f8239b1d552ef45353de99d3da Mon Sep 17 00:00:00 2001 From: kuaifan Date: Sun, 27 Feb 2022 21:12:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E5=A1=AB=E5=86=99=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/ProjectTaskFlowChange.php | 18 ++++----- ...ame_pre_project_task_flow_changes_item.php | 37 +++++++++++++++++++ 2 files changed, 45 insertions(+), 10 deletions(-) create mode 100644 database/migrations/2022_02_27_210444_rename_pre_project_task_flow_changes_item.php diff --git a/app/Models/ProjectTaskFlowChange.php b/app/Models/ProjectTaskFlowChange.php index d371819b9..c6f97c8a1 100644 --- a/app/Models/ProjectTaskFlowChange.php +++ b/app/Models/ProjectTaskFlowChange.php @@ -2,27 +2,25 @@ namespace App\Models; -use App\Module\Base; - /** * App\Models\ProjectTaskFlowChange * * @property int $id * @property int|null $task_id 任务ID * @property int|null $userid 会员ID - * @property int|null $before_item_id (变化前)工作流状态ID - * @property string|null $before_item_name (变化前)工作流状态名称 - * @property int|null $after_item_id (变化后)工作流状态ID - * @property string|null $after_item_name (变化后)工作流状态名称 + * @property int|null $before_flow_item_id (变化前)工作流状态ID + * @property string|null $before_flow_item_name (变化前)工作流状态名称 + * @property int|null $after_flow_item_id (变化后)工作流状态ID + * @property string|null $after_flow_item_name (变化后)工作流状态名称 * @property \Illuminate\Support\Carbon|null $created_at * @property \Illuminate\Support\Carbon|null $updated_at * @method static \Illuminate\Database\Eloquent\Builder|ProjectTaskFlowChange newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|ProjectTaskFlowChange newQuery() * @method static \Illuminate\Database\Eloquent\Builder|ProjectTaskFlowChange query() - * @method static \Illuminate\Database\Eloquent\Builder|ProjectTaskFlowChange whereAfterItemId($value) - * @method static \Illuminate\Database\Eloquent\Builder|ProjectTaskFlowChange whereAfterItemName($value) - * @method static \Illuminate\Database\Eloquent\Builder|ProjectTaskFlowChange whereBeforeItemId($value) - * @method static \Illuminate\Database\Eloquent\Builder|ProjectTaskFlowChange whereBeforeItemName($value) + * @method static \Illuminate\Database\Eloquent\Builder|ProjectTaskFlowChange whereAfterFlowItemId($value) + * @method static \Illuminate\Database\Eloquent\Builder|ProjectTaskFlowChange whereAfterFlowItemName($value) + * @method static \Illuminate\Database\Eloquent\Builder|ProjectTaskFlowChange whereBeforeFlowItemId($value) + * @method static \Illuminate\Database\Eloquent\Builder|ProjectTaskFlowChange whereBeforeFlowItemName($value) * @method static \Illuminate\Database\Eloquent\Builder|ProjectTaskFlowChange whereCreatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|ProjectTaskFlowChange whereId($value) * @method static \Illuminate\Database\Eloquent\Builder|ProjectTaskFlowChange whereTaskId($value) diff --git a/database/migrations/2022_02_27_210444_rename_pre_project_task_flow_changes_item.php b/database/migrations/2022_02_27_210444_rename_pre_project_task_flow_changes_item.php new file mode 100644 index 000000000..0eb864535 --- /dev/null +++ b/database/migrations/2022_02_27_210444_rename_pre_project_task_flow_changes_item.php @@ -0,0 +1,37 @@ +renameColumn('before_item_id', 'before_flow_item_id'); + $table->renameColumn('before_item_name', 'before_flow_item_name'); + $table->renameColumn('after_item_id', 'after_flow_item_id'); + $table->renameColumn('after_item_name', 'after_flow_item_name'); + } + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('project_task_flow_changes', function (Blueprint $table) { + // + }); + } +}