Skip to content

Commit

Permalink
Merge pull request #70 from bizley/fk-mig-line-break-2x
Browse files Browse the repository at this point in the history
Foreign key migration new line break
  • Loading branch information
Bizley authored Nov 1, 2019
2 parents c95945b + a9bbc57 commit a9ed184
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/controllers/MigrationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@
* Generates migration file based on the existing database table and previous migrations.
*
* @author Paweł Bizley Brzozowski
* @version 2.9.2
* @version 2.9.3
* @license Apache 2.0
* https://github.com/bizley/yii2-migration
*/
class MigrationController extends Controller
{
protected $version = '2.9.2';
protected $version = '2.9.3';

/**
* @var string Default command action.
Expand Down
3 changes: 1 addition & 2 deletions src/views/create_fk_migration.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@ class <?= $className ?> extends Migration
public function up()
{
<?php foreach ($fks as $fk): ?>
<?= $fk->render() ?>
<?= $fk->render() . "\n" ?>
<?php endforeach; ?>

}

public function down()
Expand Down

0 comments on commit a9ed184

Please sign in to comment.