Commit 8afeedf0 authored by Mahmoud Aglan's avatar Mahmoud Aglan

fix(workflow): add missing created_by column to workflow tables

The base Model::create() auto-appends created_by when timestamps are
enabled, but workflow_instances and workflow_transition_log were missing
this column — causing PDOException on fine imposition.
Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent b7b56e1c
<?php
declare(strict_types=1);
return [
'up' => "
ALTER TABLE workflow_instances ADD COLUMN created_by BIGINT UNSIGNED NULL AFTER completed_at;
ALTER TABLE workflow_transition_log ADD COLUMN created_by BIGINT UNSIGNED NULL AFTER created_at
",
'down' => "
ALTER TABLE workflow_instances DROP COLUMN created_by;
ALTER TABLE workflow_transition_log DROP COLUMN created_by
",
];
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment