Attention une mise à jour du service Gitlab va être effectuée le mardi 30 novembre entre 17h30 et 18h00. Cette mise à jour va générer une interruption du service dont nous ne maîtrisons pas complètement la durée mais qui ne devrait pas excéder quelques minutes. Cette mise à jour intermédiaire en version 14.0.12 nous permettra de rapidement pouvoir mettre à votre disposition une version plus récente.

Commit 394af133 authored by BERJON Matthieu's avatar BERJON Matthieu
Browse files

Update of the SQL schema for quotas table



I updated the Django migration file to force the order of the fields
generated in the rails database.

The migration generate an error on this particular migration for an
unknown reason although the migration finishes correctly.
Signed-off-by: BERJON Matthieu's avatarMatthieu Berjon <matthieu.berjon@inria.fr>
parent 01d148ff
...@@ -115,6 +115,20 @@ class Migration(migrations.Migration): ...@@ -115,6 +115,20 @@ class Migration(migrations.Migration):
'db_table': 'users', 'db_table': 'users',
}, },
), ),
migrations.CreateModel(
name='Quota',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='poc.User')),
('webapp', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='poc.Webapp')),
('quantity', models.BigIntegerField(blank=True, null=True)),
('created_at', models.DateTimeField(auto_now_add=True)),
('updated_at', models.DateTimeField(auto_now_add=True)),
],
options={
'db_table': 'quotas',
},
),
migrations.CreateModel( migrations.CreateModel(
name='Job', name='Job',
fields=[ fields=[
...@@ -164,18 +178,6 @@ class Migration(migrations.Migration): ...@@ -164,18 +178,6 @@ class Migration(migrations.Migration):
'db_table': 'job_uploads', 'db_table': 'job_uploads',
}, },
), ),
migrations.CreateModel(
name='Quota',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('created_at', models.DateTimeField(auto_now_add=True)),
('updated_at', models.DateTimeField(auto_now_add=True)),
('quantity', models.BigIntegerField(blank=True, null=True)),
],
options={
'db_table': 'quotas',
},
),
...@@ -184,6 +186,7 @@ class Migration(migrations.Migration): ...@@ -184,6 +186,7 @@ class Migration(migrations.Migration):
name='webapp', name='webapp',
field=models.ManyToManyField(through='poc.Quota', to='poc.Webapp'), field=models.ManyToManyField(through='poc.Quota', to='poc.Webapp'),
), ),
"""
migrations.AddField( migrations.AddField(
model_name='quota', model_name='quota',
name='user', name='user',
...@@ -194,6 +197,8 @@ class Migration(migrations.Migration): ...@@ -194,6 +197,8 @@ class Migration(migrations.Migration):
name='webapp', name='webapp',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='poc.Webapp'), field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='poc.Webapp'),
), ),
"""
,
migrations.AddField( migrations.AddField(
model_name='job', model_name='job',
name='user', name='user',
......
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