Commit 7b80c89f authored by BERJON Matthieu's avatar BERJON Matthieu

Update of the SQL schema for jobs table

I updated the Django migration file to force the order of the fields in
order to match the ones generated by the rails app.
Signed-off-by: BERJON Matthieu's avatarMatthieu Berjon <matthieu.berjon@inria.fr>
parent cd517365
......@@ -147,17 +147,20 @@ class Migration(migrations.Migration):
name='Job',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('webapp', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='poc.Webapp')),
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='poc.User')),
('created_at', models.DateTimeField(auto_now_add=True)),
('updated_at', models.DateTimeField(auto_now_add=True)),
('param', models.CharField(blank=True, max_length=255)),
('param', models.CharField(blank=True, null=True, max_length=255)),
('datasize', models.IntegerField(blank=True, null=True)),
('version', models.CharField(blank=True, max_length=255)),
('version', models.CharField(blank=True, null=True, max_length=255)),
('exec_time', models.IntegerField(blank=True, null=True)),
('size_generated_data', models.IntegerField(blank=True, null=True)),
('ipaddress', models.CharField(blank=True, max_length=255)),
('access_token', models.CharField(blank=True, max_length=255)),
('ipaddress', models.CharField(blank=True, null=True, max_length=255)),
('access_token', models.CharField(blank=True, null=True, max_length=255)),
('state', models.IntegerField()),
('container_id', models.IntegerField(blank=True, null=True)),
('queue', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='poc.JobQueue')),
('result', models.IntegerField()),
],
options={
......@@ -197,8 +200,6 @@ class Migration(migrations.Migration):
name='webapp',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='poc.Webapp'),
),
"""
,
migrations.AddField(
model_name='job',
name='user',
......@@ -209,4 +210,5 @@ class Migration(migrations.Migration):
name='webapp',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='poc.Webapp'),
),
"""
]
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment