Skip to content

Commit 2cf346c

Browse files
author
Bizley
authored
Merge pull request #71 from bizley/fk-mig-new-line-break
Foreign key migration new line breaks
2 parents 0a4c125 + 3833b1b commit 2cf346c

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/controllers/MigrationController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
* Generates migration file based on the existing database table and previous migrations.
4141
*
4242
* @author Paweł Bizley Brzozowski
43-
* @version 3.6.2
43+
* @version 3.6.3
4444
* @license Apache 2.0
4545
* https://github.com/bizley/yii2-migration
4646
*/
@@ -49,7 +49,7 @@ class MigrationController extends Controller
4949
/**
5050
* @var string
5151
*/
52-
protected $version = '3.6.2';
52+
protected $version = '3.6.3';
5353

5454
/**
5555
* @var string Default command action.

src/views/create_fk_migration.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@ class <?= $className ?> extends Migration
2323
public function up()
2424
{
2525
<?php foreach ($fks as $fk): ?>
26-
<?= $fk->render() ?>
26+
<?= $fk->render() . "\n" ?>
2727
<?php endforeach; ?>
28-
2928
}
3029

3130
public function down()

0 commit comments

Comments
 (0)