<commit_before><?php

namespace Application\Migrations;

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

/**
 * Auto-generated Migration: Please modify to your need!
 */
class Version20120713173328_create_WebSite extends AbstractMigration
{
    public function up(Schema $schema)
    {
        // this up() migration is autogenerated, please modify it to your needs
        $this->abortIf($this->connection->getDatabasePlatform()->getName() != "mysql");
        
        $this->addSql("CREATE TABLE WebSite (id INT AUTO_INCREMENT NOT NULL, canonicalUrl VARCHAR(255) NOT NULL, UNIQUE INDEX UNIQ_28E0CB454A404188 (canonicalUrl), PRIMARY KEY(id)) ENGINE = InnoDB");
    }

    public function down(Schema $schema)
    {
        // this down() migration is autogenerated, please modify it to your needs
        $this->abortIf($this->connection->getDatabasePlatform()->getName() != "mysql");
        
        $this->addSql("DROP TABLE WebSite");
    }
}<commit_msg>Refactored Version20120713173328_create_WebSite for mysql and sqlite<commit_after><?php

namespace Application\Migrations;

use SimplyTestable\ApiBundle\Migration\BaseMigration,
    Doctrine\DBAL\Schema\Schema;

/**
 * Auto-generated Migration: Please modify to your need!
 */
class Version20120713173328_create_WebSite extends BaseMigration
{
    public function up(Schema $schema)
    {
        $this->statements['mysql'] = array(
            "CREATE TABLE WebSite (id INT AUTO_INCREMENT NOT NULL, canonicalUrl VARCHAR(255) NOT NULL, UNIQUE INDEX UNIQ_28E0CB454A404188 (canonicalUrl), PRIMARY KEY(id)) ENGINE = InnoDB"
        );
        
        $this->statements['sqlite'] = array(
            "CREATE TABLE WebSite (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, canonicalUrl VARCHAR(255) NOT NULL)",
            "CREATE UNIQUE INDEX UNIQ_28E0CB454A404188 ON WebSite (canonicalUrl)",
        );
        
        parent::up($schema);
    }

    public function down(Schema $schema)
    {
        $this->statements['mysql'] = array(
            "DROP TABLE WebSite"
        );
        
        $this->statements['sqlite'] = array(
            "DROP TABLE WebSite"
        );      
        
        parent::down($schema);
    }
}
{'fraction_non_alphanumeric': 0.10741573033707866, 'fraction_numerical': 0.03910112359550562, 'mean_word_length': 3.076923076923077, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '5711366', 'n_tokens_mistral': 717, 'n_tokens_neox': 643, 'n_words': 161}