This commit is contained in:
Matthias Hochmeister
2026-03-13 21:27:07 +01:00
parent 0d4e7b480d
commit b3266afbf8
4 changed files with 54 additions and 47 deletions

View File

@@ -1,6 +1,6 @@
-- Migration 032: Add FDISK-scraped profile fields to mitglieder_profile
ALTER TABLE mitglieder_profile ADD COLUMN IF NOT EXISTS geburtsort VARCHAR(128);
ALTER TABLE mitglieder_profile ADD COLUMN IF NOT EXISTS geschlecht VARCHAR(1);
ALTER TABLE mitglieder_profile ADD COLUMN IF NOT EXISTS geschlecht VARCHAR(32);
ALTER TABLE mitglieder_profile ADD COLUMN IF NOT EXISTS beruf VARCHAR(255);
ALTER TABLE mitglieder_profile ADD COLUMN IF NOT EXISTS wohnort VARCHAR(128);
ALTER TABLE mitglieder_profile ADD COLUMN IF NOT EXISTS plz VARCHAR(16);

View File

@@ -0,0 +1,2 @@
-- Migration 036: Widen geschlecht column (was VARCHAR(1), stores full text like 'männlich')
ALTER TABLE mitglieder_profile ALTER COLUMN geschlecht TYPE VARCHAR(32);

View File

@@ -87,7 +87,7 @@ export interface MitgliederProfile {
// FDISK-synced extended profile fields
geburtsort: string | null;
geschlecht: string | null;
geschlecht: string | null; // full text, e.g. 'männlich', 'weiblich'
beruf: string | null;
wohnort: string | null;
plz: string | null;