Skip to content

Commit

Permalink
Created Migrations 01 test branch
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed Jul 3, 2021
1 parent ff31875 commit 9f84255
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions migrations/0002_alter_testmodel_age.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.2.4 on 2021-07-03 05:38

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('demo', '0001_initial'),
]

operations = [
migrations.AlterField(
model_name='testmodel',
name='age',
field=models.PositiveIntegerField(default=500),
),
]
2 changes: 1 addition & 1 deletion models.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class TestModel(models.Model):
created_at = models.DateTimeField(auto_now_add=True)
update_at = models.DateTimeField(auto_now=True)
name = models.CharField(max_length=500)
age = models.PositiveIntegerField(default=50)
age = models.PositiveIntegerField(default=500)
active = models.BooleanField(null=True)

class Meta:
Expand Down

0 comments on commit 9f84255

Please sign in to comment.