migrations/Version20171110135309.php line 1
<?php
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* editing Snabli's remarks from skype talk
*/
class Version20171110135309 extends AbstractMigration
{
/**
* @param Schema $schema
*/
public function up(Schema $schema) : void
{
// this up() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'postgresql', 'Migration can only be executed safely on \'postgresql\'.');
$this->addSql('COMMENT ON COLUMN media.id IS \'ID\'');
$this->addSql('COMMENT ON COLUMN media.is_deleted IS \'Not deleted?\'');
$this->addSql('COMMENT ON COLUMN node.id IS \'ID\'');
$this->addSql('COMMENT ON COLUMN node.is_deleted IS \'Not deleted?\'');
$this->addSql('COMMENT ON COLUMN player_sessionhist.id IS \'ID\'');
$this->addSql('COMMENT ON COLUMN users.id IS \'ID\'');
$this->addSql('COMMENT ON COLUMN mcq.id IS \'ID\'');
$this->addSql('COMMENT ON COLUMN mcq.is_deleted IS \'Not deleted?\'');
$this->addSql('COMMENT ON COLUMN link.id IS \'ID\'');
$this->addSql('COMMENT ON COLUMN link.correct IS \'Correct (-2 - fatal, 0 -wrong, 1 - correct)\'');
$this->addSql('COMMENT ON COLUMN link.is_deleted IS \'Not deleted?\'');
$this->addSql('COMMENT ON COLUMN scenario.id IS \'ID\'');
$this->addSql('COMMENT ON COLUMN scenario.is_deleted IS \'Not deleted?\'');
//$this->addSql('COMMENT ON COLUMN news.users_id IS \'ID\'');
}
/**
* @param Schema $schema
*/
public function down(Schema $schema) : void
{
// this down() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'postgresql', 'Migration can only be executed safely on \'postgresql\'.');
//$this->addSql('CREATE SCHEMA public');
$this->addSql('COMMENT ON COLUMN player_sessionhist.id IS NULL');
$this->addSql('COMMENT ON COLUMN media.id IS NULL');
$this->addSql('COMMENT ON COLUMN media.is_deleted IS \'Deleted?\'');
$this->addSql('COMMENT ON COLUMN users.id IS NULL');
$this->addSql('COMMENT ON COLUMN mcq.id IS NULL');
$this->addSql('COMMENT ON COLUMN mcq.is_deleted IS \'Deleted?\'');
$this->addSql('COMMENT ON COLUMN link.id IS NULL');
$this->addSql('COMMENT ON COLUMN link.correct IS \'Correct (-1 - fatal, 0 -wrong, 1 - correct)\'');
$this->addSql('COMMENT ON COLUMN link.is_deleted IS \'Deleted?\'');
$this->addSql('COMMENT ON COLUMN node.id IS NULL');
$this->addSql('COMMENT ON COLUMN node.is_deleted IS \'Deleted?\'');
$this->addSql('COMMENT ON COLUMN scenario.id IS NULL');
$this->addSql('COMMENT ON COLUMN scenario.is_deleted IS \'Deleted?\'');
//$this->addSql('COMMENT ON COLUMN news.users_id IS NULL');
}
}