<commit_before><?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class ExtendAclTables extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        $config = config('laravel-permission.table_names');

        Schema::table($config['roles'], function (Blueprint $table) {
            $table->integer('author_id')->after('id'); 
            $table->string('system_role')->after('author_id');
            $table->text('description')->after('name');
        });

        Schema::table($config['permissions'], function (Blueprint $table) {
            $table->integer('author_id')->after('id'); 
            $table->string('system_permission')->after('author_id');
            $table->text('description')->after('name');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        $config = config('laravel-permission.table_names');

        Schema::table($config['roles'], function (Blueprint $table) {
            $table->dropColumn('author_id');
            $table->dropColumn('system_role');
            $table->dropColumn('description');
        });

        Schema::table($config['permissions'], function (Blueprint $table) {<commit_msg>Implement phpunit fix<commit_after><?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class ExtendAclTables extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        $config = config('laravel-permission.table_names');

        Schema::table($config['roles'], function (Blueprint $table) {
            $table->integer('author_id')->nullable()->after('id');
            $table->string('system_role')->nullable()->after('author_id');
            $table->text('description')->nullable()->after('name');
        });

        Schema::table($config['permissions'], function (Blueprint $table) {
            $table->integer('author_id')->nullable()->after('id');
            $table->string('system_permission')->nullable()->after('author_id');
            $table->text('description')->nullable()->after('name');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        $config = config('laravel-permission.table_names');

        Schema::table($config['roles'], function (Blueprint $table) {
            $table->dropColumn('author_id');
            $table->dropColumn('system_role');
            $table->dropColumn('description');
        });

        Schema::table($config['permissions'], function (Blueprint $table) {
{'fraction_non_alphanumeric': 0.1737891737891738, 'fraction_numerical': 0.0, 'mean_word_length': 2.770469798657718, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 39, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6199532', 'n_tokens_mistral': 757, 'n_tokens_neox': 766, 'n_words': 114}