| @@ 353-360 (lines=8) @@ | ||
| 350 | /** |
|
| 351 | * @group DDC-133 |
|
| 352 | */ |
|
| 353 | public function testAllowImplicitSchemaTableInAutogeneratedIndexNames() : void |
|
| 354 | { |
|
| 355 | $table = new Table('foo.bar'); |
|
| 356 | $table->addColumn('baz', 'integer', []); |
|
| 357 | $table->addIndex(['baz']); |
|
| 358 | ||
| 359 | self::assertCount(1, $table->getIndexes()); |
|
| 360 | } |
|
| 361 | ||
| 362 | /** |
|
| 363 | * @group DBAL-50 |
|
| @@ 787-796 (lines=10) @@ | ||
| 784 | /** |
|
| 785 | * @group DBAL-234 |
|
| 786 | */ |
|
| 787 | public function testThrowsExceptionOnRenamingNonExistingIndex() : void |
|
| 788 | { |
|
| 789 | $table = new Table('test'); |
|
| 790 | $table->addColumn('id', 'integer'); |
|
| 791 | $table->addIndex(['id'], 'idx'); |
|
| 792 | ||
| 793 | $this->expectException(SchemaException::class); |
|
| 794 | ||
| 795 | $table->renameIndex('foo', 'bar'); |
|
| 796 | } |
|
| 797 | ||
| 798 | /** |
|
| 799 | * @group DBAL-234 |
|