Ticket #35176: 0002_rename_a_field_mymodel_a_field_renamed.py

File 0002_rename_a_field_mymodel_a_field_renamed.py, 358 bytes (added by Corentin Bettiol, 9 months ago)

Working rename of a field: field "a_field" was renamed "a_field_renamed", using migrations.RenameField.

Line 
1# Generated by Django 4.2.10 on 2024-02-08 10:45
2
3from django.db import migrations
4
5
6class Migration(migrations.Migration):
7
8 dependencies = [
9 ("b", "0001_initial"),
10 ]
11
12 operations = [
13 migrations.RenameField(
14 model_name="mymodel",
15 old_name="a_field",
16 new_name="a_field_renamed",
17 ),
18 ]
Back to Top