Skip to content

Commit

Permalink
fixup! migrations: add migration for Note
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepapoti committed Nov 3, 2024
1 parent 97cce7f commit 2a03685
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 32 deletions.
32 changes: 0 additions & 32 deletions patchwork/migrations/0047_note.py

This file was deleted.

59 changes: 59 additions & 0 deletions patchwork/migrations/0048_note.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Generated by Django 5.1.2 on 2024-11-04 07:50

import django.db.models.deletion
import django.utils.timezone
from django.conf import settings
from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
('patchwork', '0047_add_database_indexes'),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]

operations = [
migrations.CreateModel(
name='Note',
fields=[
(
'id',
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name='ID',
),
),
(
'created_at',
models.DateTimeField(default=django.utils.timezone.now),
),
(
'updated_at',
models.DateTimeField(default=django.utils.timezone.now),
),
('content', models.TextField(blank=True)),
('maintainer_only', models.BooleanField(default=True)),
(
'patch',
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
related_name='note',
related_query_name='note',
to='patchwork.patch',
),
),
(
'submitter',
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
to=settings.AUTH_USER_MODEL,
),
),
],
options={
'abstract': False,
},
),
]

0 comments on commit 2a03685

Please sign in to comment.