diff --git a/config/Migrations/20210325152201_IncreaseModelFieldsLength.php b/config/Migrations/20210325152201_IncreaseModelFieldsLength.php new file mode 100644 index 0000000..9c8e1b1 --- /dev/null +++ b/config/Migrations/20210325152201_IncreaseModelFieldsLength.php @@ -0,0 +1,56 @@ +table('activity_logs', ['id' => false, 'collation' => 'utf8_general_ci']); + $table + ->changeColumn('scope_model', 'string', [ + 'default' => null, + 'limit' => 128, + 'null' => false, + ]) + ->changeColumn('issuer_model', 'string', [ + 'default' => null, + 'limit' => 128, + 'null' => true, + ]) + ->changeColumn('object_model', 'string', [ + 'default' => null, + 'limit' => 128, + 'null' => true, + ]); + $table->update(); + } + + public function down() + { + $table = $this->table('activity_logs', ['id' => false, 'collation' => 'utf8_general_ci']); + $table + ->changeColumn('scope_model', 'string', [ + 'default' => null, + 'limit' => 64, + 'null' => false, + ]) + ->changeColumn('issuer_model', 'string', [ + 'default' => null, + 'limit' => 64, + 'null' => true, + ]) + ->changeColumn('object_model', 'string', [ + 'default' => null, + 'limit' => 64, + 'null' => true, + ]); + $table->update(); + } +}