Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,12 @@ jobs:
runs-on: self-hosted
needs: workdir
steps:
- name: Clean workspace
shell: bash
run: |
shopt -s dotglob
rm -rf -- * || true
shopt -u dotglob
- name: Download workdir
uses: actions/download-artifact@v4
with:
Expand Down
7 changes: 3 additions & 4 deletions app/config/config.neon
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,10 @@ console:
helperSet: Symfony\Component\Console\Helper\HelperSet([
# Helpery required by Doctrine Migrations commands
em: Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper(),
db: Doctrine\DBAL\Tools\Console\Helper\ConnectionHelper(),


# Helpery required by Doctrine DBAL a ORM commands
entityManager: Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper(),
connection: Doctrine\DBAL\Tools\Console\Helper\ConnectionHelper(),
question: Symfony\Component\Console\Helper\QuestionHelper(),
])

Expand Down Expand Up @@ -244,9 +243,9 @@ decorator:
setup:
- pushHandler(Monolog\Handler\RotatingFileHandler(%logDir%/log.log, 90, Monolog\Logger::INFO))

Doctrine\DBAL\Logging\LoggerChain:
Doctrine\DBAL\Configuration:
setup:
- addLogger(Model\Infrastructure\SQLLogger())
- setMiddlewares([Doctrine\DBAL\Logging\Middleware(@Monolog\Logger)])

includes:
- model/doctrine.neon
Expand Down
4 changes: 4 additions & 0 deletions app/config/model/doctrine.neon
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ dbal:
serverVersion: 8.0
driver: pdo_mysql

typesMapping:
enum: string_enum
set: string

types:
string_enum:
class: Consistence\Doctrine\Enum\Type\StringEnumType
Expand Down
4 changes: 3 additions & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,10 @@
</target>

<target name="app-init">
<!-- Create config.local.neon -->

<copy file="app/config/config.sample.local.neon" tofile="app/config/config.local.neon"/>

<exec command="bin/console nette:cache:purge" passthru="true" checkreturn="false"/>
<!-- Install dependencies -->
<exec command="composer install" passthru="true" checkreturn="true"/>
<exec command="yarn install" passthru="true" checkreturn="true"/>
Expand All @@ -264,6 +265,7 @@
<exec command="yarn build" passthru="true" checkreturn="true"/>

<!-- Prepare database schema -->
<exec command="bin/console migrations:drop-all-tables-views --no-interaction" passthru="true" checkreturn="true"/>
<exec command="bin/console migrations:migrate --no-interaction" passthru="true" checkreturn="true"/>
</target>
</project>
Loading
Loading