Tests/Unit/Fixture/TestPackage/Test2Bundle/Migrations/Schema/v1_1/Test2BundleMigration11.php 1 location
|
@@ 10-22 (lines=13) @@
|
7 |
|
use RDV\Bundle\MigrationBundle\Migration\OrderedMigrationInterface; |
8 |
|
use RDV\Bundle\MigrationBundle\Migration\QueryBag; |
9 |
|
|
10 |
|
class Test2BundleMigration11 implements Migration, OrderedMigrationInterface |
11 |
|
{ |
12 |
|
public function getOrder() |
13 |
|
{ |
14 |
|
return 2; |
15 |
|
} |
16 |
|
|
17 |
|
public function up(Schema $schema, QueryBag $queries) |
18 |
|
{ |
19 |
|
$table = $schema->getTable('test1table'); |
20 |
|
$table->addColumn('another_column', 'int'); |
21 |
|
} |
22 |
|
} |
23 |
|
|
Tests/Unit/Fixture/TestPackage/Test2Bundle/Migrations/Schema/v1_1/Test2BundleMigration12.php 1 location
|
@@ 10-22 (lines=13) @@
|
7 |
|
use RDV\Bundle\MigrationBundle\Migration\OrderedMigrationInterface; |
8 |
|
use RDV\Bundle\MigrationBundle\Migration\QueryBag; |
9 |
|
|
10 |
|
class Test2BundleMigration12 implements Migration, OrderedMigrationInterface |
11 |
|
{ |
12 |
|
public function getOrder() |
13 |
|
{ |
14 |
|
return 1; |
15 |
|
} |
16 |
|
|
17 |
|
public function up(Schema $schema, QueryBag $queries) |
18 |
|
{ |
19 |
|
$table = $schema->getTable('test1table'); |
20 |
|
$table->addColumn('another_column', 'int'); |
21 |
|
} |
22 |
|
} |
23 |
|
|