<commit_before><?php

/*
 * This file is part of the Dektrium project.
 *
 * (c) Dektrium project <http://github.com/dektrium/>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

use yii\db\Schema;
use dektrium\user\migrations\Migration;

/**
 * @author <NAME> <<EMAIL>>
 */
class m140504_113157_create_user_table extends Migration
{
    public function up()
    {
        $this->createTable('{{%user}}', [
            'id'              => Schema::TYPE_PK,
            'username'        => Schema::TYPE_STRING . ' NOT NULL',
            'email'           => Schema::TYPE_STRING . ' NOT NULL',
            'password_hash'   => Schema::TYPE_STRING . '(60) NOT NULL',
            'auth_key'        => Schema::TYPE_STRING . '(32) NOT NULL',
            'registration_ip' => Schema::TYPE_INTEGER,
            'created_at'      => Schema::TYPE_INTEGER . ' NOT NULL',
            'updated_at'      => Schema::TYPE_INTEGER . ' NOT NULL',
            'confirmed_at'    => Schema::TYPE_INTEGER,
            'blocked_at'      => Schema::TYPE_INTEGER,
            'flags'           => Schema::TYPE_INTEGER . ' NOT NULL DEFAULT 0',
        ], $this->tableOptions);

        $this->createIndex('user_unique_username', '{{%user}}', 'username', true);
        $this->createIndex('user_unique_email', '{{%user}}', 'email', true);
    }<commit_msg>added missed column<commit_after><?php

/*
 * This file is part of the Dektrium project.
 *
 * (c) Dektrium project <http://github.com/dektrium/>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

use yii\db\Schema;
use dektrium\user\migrations\Migration;

/**
 * @author <NAME> <d<EMAIL>>
 */
class m140504_113157_create_user_table extends Migration
{
    public function up()
    {
        $this->createTable('{{%user}}', [
            'id'                => Schema::TYPE_PK,
            'username'          => Schema::TYPE_STRING . ' NOT NULL',
            'email'             => Schema::TYPE_STRING . ' NOT NULL',
            'unconfirmed_email' => Schema::TYPE_STRING . ' NOT NULL',
            'password_hash'     => Schema::TYPE_STRING . '(60) NOT NULL',
            'auth_key'          => Schema::TYPE_STRING . '(32) NOT NULL',
            'registration_ip'   => Schema::TYPE_INTEGER,
            'created_at'        => Schema::TYPE_INTEGER . ' NOT NULL',
            'updated_at'        => Schema::TYPE_INTEGER . ' NOT NULL',
            'confirmed_at'      => Schema::TYPE_INTEGER,
            'blocked_at'        => Schema::TYPE_INTEGER,
            'flags'             => Schema::TYPE_INTEGER . ' NOT NULL DEFAULT 0',
        ], $this->tableOptions);

        $this->createIndex('user_unique_username', '{{%user}}', 'username', true);
        $this->createIndex('user_unique_email', '{{%user}}', 'email', true);
    }
{'fraction_non_alphanumeric': 0.15032456440040998, 'fraction_numerical': 0.011615989067304407, 'mean_word_length': 2.3310580204778155, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 42, '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': '2359911', 'n_tokens_mistral': 891, 'n_tokens_neox': 869, 'n_words': 198}