Created
September 4, 2017 15:28
-
-
Save evgeniy1204/99999ebd7b3229382eafececb47075e7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Application\Migrations; | |
use Doctrine\DBAL\Migrations\AbstractMigration; | |
use Doctrine\DBAL\Schema\Schema; | |
/** | |
* Auto-generated Migration: Please modify to your needs! | |
*/ | |
class Version20170904175832 extends AbstractMigration | |
{ | |
/** | |
* @param Schema $schema | |
*/ | |
public function up(Schema $schema) | |
{ | |
// this up() migration is auto-generated, please modify it to your needs | |
$this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on \'mysql\'.'); | |
$this->addSql('INSERT INTO settings (id, title, setting_key, value) VALUES (NULL, \'Telegram url\', \'social_telegram_link\', NULL)'); | |
$this->addSql('INSERT INTO settings (id, title, setting_key, value) VALUES (NULL, \'Viber url\', \'social_viber_link\', NULL)'); | |
$this->addSql('INSERT INTO settings (id, title, setting_key, value) VALUES (NULL, \'Instagram url\', \'social_inst_link\', NULL)'); | |
$this->addSql('INSERT INTO settings (id, title, setting_key, value) VALUES (NULL, \'Youtube url\', \'social_yo_link\', NULL)'); | |
} | |
/** | |
* @param Schema $schema | |
*/ | |
public function down(Schema $schema) | |
{ | |
// this down() migration is auto-generated, please modify it to your needs | |
$this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on \'mysql\'.'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment