Skip to content

Commit

Permalink
Executa dump postgres no db updates quando system_role não é encontrada
Browse files Browse the repository at this point in the history
  • Loading branch information
lpirola committed Jul 5, 2024
1 parent 7c47827 commit 25728e7
Show file tree
Hide file tree
Showing 6 changed files with 531 additions and 477 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,6 @@ jobs:
# subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
# subject-digest: ${{ steps.push.outputs.digest }}
# push-to-registry: true
-
name: Create private-files folder
run: docker compose run --rm web mkdir var/private-files
-
name: Start services
run: docker compose up database redis mailhog web --wait --no-build
Expand All @@ -94,6 +91,9 @@ jobs:
-
name: Run db-updates
run: docker compose exec -T web php mapas/src/tools/apply-updates.php
-
name: Run db-updates
run: docker compose exec -T web php mapas/src/tools/apply-multicore-db-update.php
-
name: Run migrations
run: docker compose exec -T web bin/console -e test doctrine:migrations:migrate --no-interaction
Expand Down
14 changes: 13 additions & 1 deletion api/mapas/app/bin/doctrine
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,22 @@ require dirname(__DIR__, 2) . '/public/bootstrap.php';

use Doctrine\ORM\Tools\Console\ConsoleRunner;
use Doctrine\ORM\Tools\Console\EntityManagerProvider\SingleManagerProvider;
use Doctrine\Migrations\Tools\Console\Command;

$entityManager = $app->em ?? null;

$commands = [];
$commands = [
new Command\DumpSchemaCommand(),
new Command\ExecuteCommand(),
new Command\GenerateCommand(),
new Command\LatestCommand(),
new Command\ListCommand(),
new Command\MigrateCommand(),
new Command\RollupCommand(),
new Command\StatusCommand(),
new Command\SyncMetadataCommand(),
new Command\VersionCommand(),
];

ConsoleRunner::run(
new SingleManagerProvider($entityManager),
Expand Down
Loading

0 comments on commit 25728e7

Please sign in to comment.