-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cria arquivo de migração para Top100ArticlesFileEvent
- Loading branch information
1 parent
73ea075
commit 9ba6221
Showing
2 changed files
with
92 additions
and
1 deletion.
There are no files selected for viewing
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
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,91 @@ | ||
# Generated by Django 5.0.7 on 2024-08-30 17:41 | ||
|
||
import django.db.models.deletion | ||
from django.conf import settings | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("metrics", "0002_alter_top100articlesfile_status"), | ||
("tracker", "0001_initial"), | ||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name="Top100ArticlesFileEvent", | ||
fields=[ | ||
( | ||
"id", | ||
models.BigAutoField( | ||
auto_created=True, | ||
primary_key=True, | ||
serialize=False, | ||
verbose_name="ID", | ||
), | ||
), | ||
( | ||
"created", | ||
models.DateTimeField( | ||
auto_now_add=True, verbose_name="Creation date" | ||
), | ||
), | ||
( | ||
"updated", | ||
models.DateTimeField( | ||
auto_now=True, verbose_name="Last update date" | ||
), | ||
), | ||
( | ||
"status", | ||
models.CharField( | ||
blank=True, max_length=64, null=True, verbose_name="Status" | ||
), | ||
), | ||
( | ||
"lines", | ||
models.IntegerField(blank=True, null=True, verbose_name="Lines"), | ||
), | ||
( | ||
"message", | ||
models.TextField(blank=True, null=True, verbose_name="Message"), | ||
), | ||
( | ||
"creator", | ||
models.ForeignKey( | ||
editable=False, | ||
null=True, | ||
on_delete=django.db.models.deletion.SET_NULL, | ||
related_name="%(class)s_creator", | ||
to=settings.AUTH_USER_MODEL, | ||
verbose_name="Creator", | ||
), | ||
), | ||
( | ||
"file", | ||
models.ForeignKey( | ||
blank=True, | ||
null=True, | ||
on_delete=django.db.models.deletion.SET_NULL, | ||
to="metrics.top100articlesfile", | ||
), | ||
), | ||
( | ||
"updated_by", | ||
models.ForeignKey( | ||
blank=True, | ||
editable=False, | ||
null=True, | ||
on_delete=django.db.models.deletion.SET_NULL, | ||
related_name="%(class)s_last_mod_user", | ||
to=settings.AUTH_USER_MODEL, | ||
verbose_name="Updater", | ||
), | ||
), | ||
], | ||
options={ | ||
"verbose_name_plural": "Top 100 Article File Reports", | ||
}, | ||
), | ||
] |