diff --git a/webapp/config/packages/doctrine.yaml b/webapp/config/packages/doctrine.yaml index dacbb2a2fe..710472352f 100644 --- a/webapp/config/packages/doctrine.yaml +++ b/webapp/config/packages/doctrine.yaml @@ -17,6 +17,7 @@ doctrine: judge_task_type: App\Doctrine\DBAL\Types\JudgeTaskType mapping_types: enum: string + schema_filter: ~^(?!sessions)~ orm: auto_generate_proxy_classes: true naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware diff --git a/webapp/config/packages/framework.yaml b/webapp/config/packages/framework.yaml index ff05b6bc25..dedf379918 100644 --- a/webapp/config/packages/framework.yaml +++ b/webapp/config/packages/framework.yaml @@ -4,7 +4,7 @@ framework: fragments: ~ session: - handler_id: ~ + handler_id: "%env(DATABASE_URL)%" cookie_secure: auto cookie_samesite: lax storage_factory_id: session.storage.factory.native diff --git a/webapp/migrations/Version20220816125435.php b/webapp/migrations/Version20220816125435.php new file mode 100644 index 0000000000..f438ab5999 --- /dev/null +++ b/webapp/migrations/Version20220816125435.php @@ -0,0 +1,45 @@ +addSql(<<addSql('DROP TABLE `sessions`'); + } + + public function isTransactional(): bool + { + return false; + } +}