-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup! migrations: add migration for Note
- Loading branch information
1 parent
97cce7f
commit 2a03685
Showing
2 changed files
with
59 additions
and
32 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
}, | ||
), | ||
] |