Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/migrations' into migrations
Browse files Browse the repository at this point in the history
# Conflicts:
#	migrations/items/M240118192500CreateItemsTables.php
  • Loading branch information
arogachev committed Jan 19, 2024
2 parents 4d10393 + 94a03c2 commit cbc674d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

use Yiisoft\Db\Migration\MigrationBuilder;
use Yiisoft\Db\Migration\RevertibleMigrationInterface;
use Yiisoft\Db\Migration\TransactionalMigrationInterface;
Expand Down
4 changes: 3 additions & 1 deletion migrations/items/M240118192500CreateItemsTables.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

use Yiisoft\Db\Migration\MigrationBuilder;
use Yiisoft\Db\Migration\RevertibleMigrationInterface;
use Yiisoft\Db\Migration\TransactionalMigrationInterface;
Expand Down Expand Up @@ -35,7 +37,7 @@ private function createItemsTable(MigrationBuilder $b): void
'updatedAt' => 'integer NOT NULL',
],
);
$b->createIndex(self::ITEMS_TABLE, 'idx-' . self::ITEMS_TABLE . '-type', 'type');
$b->createIndex(self::ITEMS_TABLE, 'idx-' . self::ITEMS_TABLE . '-type', 'type');

Check warning on line 40 in migrations/items/M240118192500CreateItemsTables.php

View check run for this annotation

Codecov / codecov/patch

migrations/items/M240118192500CreateItemsTables.php#L29-L40

Added lines #L29 - L40 were not covered by tests
}

private function createItemsChildrenTable(MigrationBuilder $b): void

Check warning on line 43 in migrations/items/M240118192500CreateItemsTables.php

View check run for this annotation

Codecov / codecov/patch

migrations/items/M240118192500CreateItemsTables.php#L43

Added line #L43 was not covered by tests
Expand Down

0 comments on commit cbc674d

Please sign in to comment.