Skip to content

Commit

Permalink
Update 0051_add_textfield_all_models.py
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelmeister authored Nov 12, 2024
1 parent 75d136e commit 83ac4eb
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion backend/apps/api/v1/migrations/0051_add_textfield_all_models.py
Original file line number Diff line number Diff line change
@@ -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):

Expand All @@ -10,4 +17,5 @@ class Migration(migrations.Migration):
]

operations = [
migrations.RunPython(add_new_field_to_all_tables),
]

0 comments on commit 83ac4eb

Please sign in to comment.