Application\Migrations\Version20160410190541::up PHP Method

up() public method

public up ( Doctrine\DBAL\Schema\Schema $schema )
$schema Doctrine\DBAL\Schema\Schema
    public function up(Schema $schema)
    {
        if ($this->connection->getDatabasePlatform()->getName() == 'postgresql') {
            $this->addSql('ALTER TABLE "' . $this->getTable('entry') . '" ADD uuid UUID DEFAULT NULL');
        } else {
            $this->addSql('ALTER TABLE "' . $this->getTable('entry') . '" ADD uuid LONGTEXT DEFAULT NULL');
        }
        $this->addSql("INSERT INTO \"" . $this->getTable('craue_config_setting') . "\" (name, value, section) VALUES ('share_public', '1', 'entry')");
    }