IntegrityError: нулевое значение в столбце "id" нарушает условие not-null
Я пытаюсь выполнить миграцию в DB postgres, но столкнулся с такой проблемой. Вот модель
`class Place(models.Model):
name = models.CharField('Puntos de Luz', max_length=50)
description = models.TextField('Descripción', blank=True)
url = models.URLField('Canal interactivo', max_length=250)
email = models.EmailField('Email',blank=True)
create_at = models.DateTimeField('Fecha de creacion', auto_now_add=True)
status = models.BooleanField(default=False)
def __str__(self):
return "{}, {}".format(self.name, self.url)
` и вот мой отслеживание django.db.utils.IntegrityError: null значение в столбце "id" нарушает ограничение not-null ПОДРОБНАЯ ИНФОРМАЦИЯ: Неудачная строка содержит (null, place, 0001_initial, 2022-01-12 17:01:25.635775+00). это миграция файлов
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Place',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=50, verbose_name='Puntos de Luz')),
('description', models.TextField(blank=True, verbose_name='Descripción')),
('url', models.URLField(max_length=250, verbose_name='Canal interactivo')),
('email', models.EmailField(blank=True, max_length=254, verbose_name='Email')),
('create_at', models.DateTimeField(auto_now_add=True, verbose_name='Fecha de creacion')),
('status', models.BooleanField(default=False)),
],
),
]