From 8413e5c340622a72de3edf70314bcbc87100cc34 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 4 Sep 2026 22:52:39 +0200 Subject: [PATCH] fix: map CORS origins to migrated column --- README.md | 2 +- src/Entity/StationCorsConfiguration.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d84992c..458ead5 100644 --- a/README.md +++ b/README.md @@ -103,7 +103,7 @@ First, run the plugin migration once after installing/upgrading the plugin: ```bash cd /var/azuracast -./docker.sh cli doctrine:migrations:migrate --no-interaction +./docker.sh cli migrations:migrate --no-interaction ``` Then configure the station (the station argument accepts its ID or short name): diff --git a/src/Entity/StationCorsConfiguration.php b/src/Entity/StationCorsConfiguration.php index 93c94d0..e05f85e 100644 --- a/src/Entity/StationCorsConfiguration.php +++ b/src/Entity/StationCorsConfiguration.php @@ -16,7 +16,7 @@ final class StationCorsConfiguration private ?int $id = null; /** @var list */ - #[ORM\Column(type: 'json')] + #[ORM\Column(name: 'allowed_origins', type: 'json')] private array $allowedOrigins = []; /** @param list $allowedOrigins */