<commit_before><?php

namespace Application\Migrations;

use Doctrine\DBAL\Migrations\AbstractMigration,
    Doctrine\DBAL\Schema\Schema;

class Version20130115161320 extends AbstractMigration
{
    public function up(Schema $schema)
    {
        $tbl = $schema->createTable("ProcessEntity");
        $tbl->addColumn("id", "integer", ["unsigned" => true, "autoincrement" => true]);
        $tbl->addColumn("groupName", "string");
        $tbl->addColumn("procName", "string");
        $tbl->addColumn("command", "text");
        $tbl->setPrimaryKey(["id"]);
        // TODO Unique key on group and proc names
    }

    public function down(Schema $schema)
    {
        $this->addSql("DROP TABLE ProcessEntity");
    }
}
<commit_msg>Extending schema a little to prepare for future features<commit_after><?php

namespace Application\Migrations;

use Doctrine\DBAL\Migrations\AbstractMigration,
    Doctrine\DBAL\Schema\Schema;

class Version20130115161320 extends AbstractMigration
{
    public function up(Schema $schema)
    {
        $tbl = $schema->createTable("ProcessEntity");
        $tbl->addColumn("id", "integer", ["unsigned" => true, "autoincrement" => true]);
        $tbl->addColumn("groupName", "string");
        $tbl->addColumn("procName", "string");
        $tbl->addColumn("command", "text");
        $tbl->addColumn("heartbeat", "integer", ["unsigned" => true, "notnull" => false]);
        $tbl->setPrimaryKey(["id"]);
        $tbl->addUniqueIndex(["groupName", "procName"]);
    }

    public function down(Schema $schema)
    {
        $this->addSql("DROP TABLE ProcessEntity");
    }
}

{'fraction_non_alphanumeric': 0.16149068322981366, 'fraction_numerical': 0.017391304347826087, 'mean_word_length': 3.6028571428571428, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 25, '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': '3215433', 'n_tokens_mistral': 495, 'n_tokens_neox': 479, 'n_words': 96}