<commit_before><?php

use Illuminate\Database\Migrations\Migration;

class AddUsername extends Migration {

    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('users', function($table)
        {
            $table->string('username', 20)->unique();
            $table->string('slug')->unique();
            $table->integer('updater_id')->unsigned()->default(0);
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()<commit_msg>Added default value for slug attribute of users table<commit_after><?php

use Illuminate\Database\Migrations\Migration;

class AddUsername extends Migration {

    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('users', function($table)
        {
            $table->string('username', 20)->unique();
            // Note: An empty string is not a valid value for the slug attribute, however,
            // we have to allow this, because Sentinel will fill it it in its register() method.
            $table->string('slug')->unique()->default('');
            $table->integer('updater_id')->unsigned()->default(0);
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
{'fraction_non_alphanumeric': 0.1436907366885485, 'fraction_numerical': 0.00437636761487965, 'mean_word_length': 2.09009009009009, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 18, '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': '5103413', 'n_tokens_mistral': 373, 'n_tokens_neox': 373, 'n_words': 94}