Skip to content

Commit

Permalink
Merge pull request #81 from j0k3r/update-deps
Browse files Browse the repository at this point in the history
Update deps & CS
  • Loading branch information
j0k3r authored Oct 6, 2017
2 parents a98f32c + a51144f commit 95a05ab
Show file tree
Hide file tree
Showing 10 changed files with 718 additions and 529 deletions.
4 changes: 2 additions & 2 deletions app/migrations/Version20170222055642.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Version20170222055642 extends AbstractMigration
*/
public function up(Schema $schema)
{
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->abortIf('mysql' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'mysql\'.');

$repoTable = $schema->getTable('repo');
$this->skipIf($repoTable->hasColumn('homepage') || $repoTable->hasColumn('language'), 'It seems that you already played this migration.');
Expand All @@ -28,7 +28,7 @@ public function up(Schema $schema)
*/
public function down(Schema $schema)
{
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->abortIf('mysql' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'mysql\'.');

$this->addSql('ALTER TABLE repo DROP homepage, DROP language');
}
Expand Down
4 changes: 2 additions & 2 deletions app/migrations/Version20170329095349.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Version20170329095349 extends AbstractMigration
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->abortIf('mysql' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'mysql\'.');

$this->addSql('ALTER TABLE user CHANGE name name VARCHAR(191) DEFAULT NULL');
}
Expand All @@ -27,7 +27,7 @@ public function up(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\'.');
$this->abortIf('mysql' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'mysql\'.');

$this->addSql('ALTER TABLE user CHANGE name name VARCHAR(191) NOT NULL COLLATE utf8mb4_unicode_ci');
}
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"swarrot/swarrot-bundle": "^1.4",
"symfony/monolog-bundle": "^3.0",
"symfony/polyfill-apcu": "^1.0",
"symfony/symfony": "3.2.*",
"symfony/symfony": "3.3.*",
"twig/extensions": "^1.4"
},
"require-dev": {
Expand Down
Loading

0 comments on commit 95a05ab

Please sign in to comment.