-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Allow use `maxSqlOutputLength` * Apply fixes from StyleCI * Add test migration file * Apply fixes from StyleCI * Fix test * Remove `Migrator::getMaxSqlOutputLength()` * Apply @vjik suggestion Co-authored-by: Sergei Predvoditelev <[email protected]> * Update according to the last commit * Revert migration after test * Update default value in config template --------- Co-authored-by: StyleCI Bot <[email protected]> Co-authored-by: Sergei Predvoditelev <[email protected]>
- Loading branch information
1 parent
cca5a2f
commit 59f8546
Showing
6 changed files
with
92 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Yiisoft\Db\Migration\Tests\Support\Migrations; | ||
|
||
use Yiisoft\Db\Migration\MigrationBuilder; | ||
use Yiisoft\Db\Migration\RevertibleMigrationInterface; | ||
use Yiisoft\Db\Migration\TransactionalMigrationInterface; | ||
|
||
/** | ||
* Execute SQL | ||
*/ | ||
final class M231015155500ExecuteSql implements RevertibleMigrationInterface, TransactionalMigrationInterface | ||
{ | ||
public function up(MigrationBuilder $b): void | ||
{ | ||
$b->execute( | ||
<<<SQL | ||
CREATE TABLE person ( | ||
id INT, | ||
first_name VARCHAR(100), | ||
last_name VARCHAR(100) | ||
) | ||
SQL, | ||
); | ||
} | ||
|
||
public function down(MigrationBuilder $b): void | ||
{ | ||
$b->execute('DROP TABLE person'); | ||
} | ||
} |