Skip to content

Commit

Permalink
update migration
Browse files Browse the repository at this point in the history
  • Loading branch information
railken committed Mar 29, 2024
1 parent 89a0147 commit 50a649e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class CreateActionsTable extends Migration
public function up()
{
Schema::create(Config::get('amethyst.action.data.action.table'), function (Blueprint $table) {
$table->increments('id');
$table->id();
$table->string('name')->index();
$table->text('description')->nullable();
$table->text('payload');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class CreateWorkflowsTable extends Migration
public function up()
{
Schema::create(Config::get('amethyst.action.data.workflow.table'), function (Blueprint $table) {
$table->increments('id');
$table->id();
$table->string('name')->index();
$table->text('description')->nullable();
$table->boolean('autostart');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class CreateWorkflowNodesTable extends Migration
public function up()
{
Schema::create(Config::get('amethyst.action.data.workflow-node.table'), function (Blueprint $table) {
$table->increments('id');
$table->id();

$table->integer('workflow_id')->unsigned();
$table->foreign('workflow_id')->references('id')->on(Config::get('amethyst.action.data.workflow.table'));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class CreateWorkflowStatesTable extends Migration
public function up()
{
Schema::create(Config::get('amethyst.action.data.workflow-state.table'), function (Blueprint $table) {
$table->increments('id');
$table->id();

$table->integer('workflow_id')->unsigned();
$table->foreign('workflow_id')->references('id')->on(Config::get('amethyst.action.data.workflow.table'));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class CreateWorkflowNodeStatesTable extends Migration
public function up()
{
Schema::create(Config::get('amethyst.action.data.workflow-node-state.table'), function (Blueprint $table) {
$table->increments('id');
$table->id();

$table->integer('workflow_state_id')->unsigned();
$table->foreign('workflow_state_id')->references('id')->on(Config::get('amethyst.action.data.workflow-state.table'));
Expand Down

0 comments on commit 50a649e

Please sign in to comment.