Skip to content
Snippets Groups Projects
Commit 332f5da3 authored by Samuel GAIST's avatar Samuel GAIST Committed by Flavio TARSETTI
Browse files

[statistics][migrations] Pre-commit cleanup

parent 40b8919b
No related branches found
No related tags found
2 merge requests!363Cleanup statistics,!342Django 3 migration
...@@ -27,32 +27,38 @@ ...@@ -27,32 +27,38 @@
from __future__ import unicode_literals from __future__ import unicode_literals
from django.db import migrations, models from django.db import migrations
from django.db import models
class Migration(migrations.Migration): class Migration(migrations.Migration):
dependencies = [ dependencies = []
]
operations = [ operations = [
migrations.CreateModel( migrations.CreateModel(
name='HourlyStatistics', name="HourlyStatistics",
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), (
('date', models.DateField()), "id",
('hour', models.IntegerField()), models.AutoField(
('cpu_time', models.FloatField(default=0)), verbose_name="ID",
('max_memory', models.BigIntegerField(default=0)), serialize=False,
('data_read_size', models.BigIntegerField(default=0)), auto_created=True,
('data_read_nb_blocks', models.IntegerField(default=0)), primary_key=True,
('data_read_time', models.FloatField(default=0)), ),
('data_written_size', models.BigIntegerField(default=0)), ),
('data_written_nb_blocks', models.IntegerField(default=0)), ("date", models.DateField()),
('data_written_time', models.FloatField(default=0)), ("hour", models.IntegerField()),
("cpu_time", models.FloatField(default=0)),
("max_memory", models.BigIntegerField(default=0)),
("data_read_size", models.BigIntegerField(default=0)),
("data_read_nb_blocks", models.IntegerField(default=0)),
("data_read_time", models.FloatField(default=0)),
("data_written_size", models.BigIntegerField(default=0)),
("data_written_nb_blocks", models.IntegerField(default=0)),
("data_written_time", models.FloatField(default=0)),
], ],
options={ options={"verbose_name_plural": "Hourly statistics"},
'verbose_name_plural': 'Hourly statistics',
},
), ),
] ]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment