<commit_before><?php

namespace DoctrineMigrations;

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

class Version20120411174904 extends AbstractMigration
{
    /*
     * modifications to cc_show_instances for 2.1
     */
    public function up(Schema $schema)
    {
        $this->_addSql("ALTER TABLE cc_show_instances ADD created timestamp");
        $this->_addSql("ALTER TABLE cc_show_instances ALTER COLUMN created SET NOT NULL");
        
        //setting these to a default now for timeline refresh purposes.
        $now = gmdate("Y-m-d H:i:s");
        $this->_addSql("UPDATE cc_show_instances SET created = '$now'");
        $this->_addSql("UPDATE cc_show_instances SET last_scheduled = '$now'");
    }
<commit_msg>CC-3684 : Upgraded database not equivalent to fresh install database part 2<commit_after><?php

namespace DoctrineMigrations;

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

class Version20120411174904 extends AbstractMigration
{
    /*
     * modifications to cc_show_instances for 2.1
     */
    public function up(Schema $schema)
    {
        $this->_addSql("ALTER TABLE cc_show_instances ADD created timestamp");
        $this->_addSql("ALTER TABLE cc_show_instances ALTER COLUMN created SET NOT NULL");
        
        $this->_addSql("ALTER TABLE cc_show_instances ADD last_scheduled timestamp");
        
        //setting these to a default now for timeline refresh purposes.
        $now = gmdate("Y-m-d H:i:s");
        $this->_addSql("UPDATE cc_show_instances SET created = '$now'");
        $this->_addSql("UPDATE cc_show_instances SET last_scheduled = '$now'");
    }

{'fraction_non_alphanumeric': 0.10125074449076832, 'fraction_numerical': 0.022036926742108397, 'mean_word_length': 3.3636363636363638, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 12, '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': '140481', 'n_tokens_mistral': 523, 'n_tokens_neox': 507, 'n_words': 130}