From 9f842551816a655ed1c0b8bfee8534783b2f6ab5 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Sat, 3 Jul 2021 06:38:39 -0400 Subject: [PATCH] Created Migrations 01 test branch --- migrations/0002_alter_testmodel_age.py | 18 ++++++++++++++++++ models.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 migrations/0002_alter_testmodel_age.py diff --git a/migrations/0002_alter_testmodel_age.py b/migrations/0002_alter_testmodel_age.py new file mode 100644 index 0000000..cb8b863 --- /dev/null +++ b/migrations/0002_alter_testmodel_age.py @@ -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), + ), + ] diff --git a/models.py b/models.py index efc0819..18c1658 100644 --- a/models.py +++ b/models.py @@ -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: