Wahlproblem gefixt
Some checks failed
Deploy yourpart (blue-green) / deploy (push) Failing after 1m22s

This commit is contained in:
Torsten Schulz (local)
2026-06-06 12:35:27 +02:00
parent bad5b86951
commit 35377e3b59
3 changed files with 22 additions and 15 deletions

View File

@@ -153,8 +153,8 @@ WITH removed AS (
),
archived_removed AS (
INSERT INTO falukant_log.political_office_history
(character_id, office_type_id, region_id, start_date, end_date)
SELECT character_id, office_type_id, region_id, created_at, NOW()
(character_id, office_type_id, region_id, start_date, end_date, created_at, updated_at)
SELECT character_id, office_type_id, region_id, created_at, NOW(), NOW(), NOW()
FROM removed
),
affected AS (
@@ -183,8 +183,8 @@ to_delete AS (
),
archived_trim AS (
INSERT INTO falukant_log.political_office_history
(character_id, office_type_id, region_id, start_date, end_date)
SELECT character_id, office_type_id, region_id, created_at, NOW()
(character_id, office_type_id, region_id, start_date, end_date, created_at, updated_at)
SELECT character_id, office_type_id, region_id, created_at, NOW(), NOW(), NOW()
FROM to_delete
)
DELETE FROM falukant_data.political_office