Commit 77cbf0df authored by BERJON Matthieu's avatar BERJON Matthieu

Update of the SQL schema for webapps tables

I updated the Django migration file to force the order of the fields
generated in the database.
Signed-off-by: BERJON Matthieu's avatarMatthieu Berjon <matthieu.berjon@inria.fr>
parent 8cb5dae4
......@@ -118,17 +118,18 @@ class Migration(migrations.Migration):
name='Webapp',
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)),
('name', models.CharField(blank=True, max_length=255, unique=True)),
('description', models.TextField(blank=True, null=True)),
('contact', models.CharField(blank=True, max_length=255, null=True)),
('created_at', models.DateTimeField(auto_now_add=True)),
('updated_at', models.DateTimeField(auto_now_add=True)),
('logo_file_name', models.CharField(blank=True, max_length=255, null=True)),
('logo_content_type', models.CharField(blank=True, max_length=255, null=True)),
('logo_file_size', models.IntegerField(blank=True, null=True)),
('logo_updated_at', models.DateTimeField(blank=True, null=True)),
('user_other', models.IntegerField(blank=True, null=True)),
('default_quota', models.IntegerField(blank=True, null=True)),
('docker_os', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='poc.DockerOs')),
('docker_name', models.CharField(blank=True, max_length=255)),
('readme', models.IntegerField(blank=True, null=True)),
('entrypoint', models.CharField(blank=True, max_length=255)),
......@@ -139,7 +140,6 @@ class Migration(migrations.Migration):
('sandbox_version_id', models.IntegerField(blank=True, null=True)),
('default_job_queue_id', models.IntegerField(null=True)),
('memory_limit', models.BigIntegerField(blank=True, null=True)),
('docker_os', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='poc.DockerOs')),
],
options={
'db_table': 'webapps',
......
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