1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-11-27 19:03:00 +00:00
nk20/apps/member/migrations/0004_replace_null_by_blank.py

21 lines
551 B
Python
Raw Normal View History

from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('member', '0003_create_bde_and_kfet'),
]
operations = [
migrations.RunSQL(
"UPDATE member_profile SET address = '' WHERE address IS NULL;",
),
migrations.RunSQL(
"UPDATE member_profile SET ml_events_registration = '' WHERE ml_events_registration IS NULL;",
),
migrations.RunSQL(
"UPDATE member_profile SET section = '' WHERE section IS NULL;",
),
]