Skip to content

Commit

Permalink
Update to 1.0.3, fixed migration
Browse files Browse the repository at this point in the history
  • Loading branch information
tschallacka committed Jan 17, 2021
1 parent 1452cad commit 2d6a92a
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion updates/create_form_tools_demos_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function up()

$table->string('name');
$table->string('options')->nullable();
$table->text('color')->nullable();
$table->string('color', 15)->nullable();
});
}

Expand Down
25 changes: 25 additions & 0 deletions updates/update_form_tools_demo_table_103.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php namespace Tschallacka\FormTools\Updates;

use Schema;
use October\Rain\Database\Schema\Blueprint;
use October\Rain\Database\Updates\Migration;
use Tschallacka\FormTools\Traits\ConsoleLoggerTrait;

class CreateFormToolsDemosTable extends Migration
{
use ConsoleLoggerTrait;

public function up()
{
Schema::table('tschallacka_formtools_form_tools_demos', function(Blueprint $table) {
$table->string('color', 255)->change();
});
}

public function down()
{
Schema::table('tschallacka_formtools_form_tools_demos', function(Blueprint $table) {
$table->string('color', 15)->change();
});
}
}
3 changes: 3 additions & 0 deletions updates/version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@
- Adding filtered checkbox list and demo page for the form elements. see /backend/tschallacka/formtools/formtoolsdemo
- create_form_tools_demos_table.php
- seed_form_tools_demo_table.php
1.0.3:
- Updated color code so it can accept rgba codes
- update_form_tools_demo_table_103.php

0 comments on commit 2d6a92a

Please sign in to comment.