diff --git a/backend/apps/api/v1/migrations/0051_add_textfield_all_models.py b/backend/apps/api/v1/migrations/0051_add_textfield_all_models.py index 214e6745..68484ac9 100644 --- a/backend/apps/api/v1/migrations/0051_add_textfield_all_models.py +++ b/backend/apps/api/v1/migrations/0051_add_textfield_all_models.py @@ -1,7 +1,14 @@ # Generated by Django 4.2.16 on 2024-11-12 15:34 -from django.db import migrations +from django.db import migrations, models +def add_new_field_to_all_tables(apps, schema_editor): + for model in apps.get_models(): + schema_editor.add_field( + model, + name='url_links', + field=models.TextField(max_length=255, default='', blank=True) + ) class Migration(migrations.Migration): @@ -10,4 +17,5 @@ class Migration(migrations.Migration): ] operations = [ + migrations.RunPython(add_new_field_to_all_tables), ]