Skip to content

Commit

Permalink
Cria arquivo de migração para Top100ArticlesFileEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelpezzuto committed Aug 30, 2024
1 parent 73ea075 commit 9ba6221
Show file tree
Hide file tree
Showing 2 changed files with 92 additions and 1 deletion.
2 changes: 1 addition & 1 deletion metrics/migrations/0002_alter_top100articlesfile_status.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 5.0.7 on 2024-08-30 12:27
# Generated by Django 5.0.7 on 2024-08-30 17:41

from django.db import migrations, models

Expand Down
91 changes: 91 additions & 0 deletions tracker/migrations/0002_top100articlesfileevent.py
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",
},
),
]

0 comments on commit 9ba6221

Please sign in to comment.