diff options
author | 2016-08-19 17:11:58 +0200 | |
---|---|---|
committer | 2016-08-19 17:11:58 +0200 | |
commit | 66eb4d851e63d20031502ec0c96aaabe34c6fd32 (patch) | |
tree | 98248b6faf6b3c742efef258e34f06cc92d1a888 /tools/pharos-dashboard/account/migrations | |
parent | 3b5ef3b0a88247eeafeee878de528aad71f9fd4b (diff) |
Implement periodic tasks
JIRA: RELENG-12
The dashboard is now querying jenkins periodically and saving the
results in the database. This fixes delays that were caused by calling
the jenkins API.
Signed-off-by: maxbr <maxbr@mi.fu-berlin.de>
Diffstat (limited to 'tools/pharos-dashboard/account/migrations')
-rw-r--r-- | tools/pharos-dashboard/account/migrations/0001_initial.py | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/tools/pharos-dashboard/account/migrations/0001_initial.py b/tools/pharos-dashboard/account/migrations/0001_initial.py index 752d5171..4ff9510a 100644 --- a/tools/pharos-dashboard/account/migrations/0001_initial.py +++ b/tools/pharos-dashboard/account/migrations/0001_initial.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Generated by Django 1.10 on 2016-08-12 09:51 +# Generated by Django 1.10 on 2016-08-15 12:19 from __future__ import unicode_literals from django.conf import settings @@ -13,7 +13,6 @@ class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), - ('dashboard', '0001_initial'), ] operations = [ @@ -21,7 +20,9 @@ class Migration(migrations.Migration): name='UserProfile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('sshkey', models.CharField(max_length=1024)), + ('timezone', models.CharField(default='UTC', max_length=100)), + ('sshkey', models.CharField(max_length=2048)), + ('pgpkey', models.CharField(max_length=2048)), ('company', models.CharField(max_length=200)), ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], @@ -29,15 +30,4 @@ class Migration(migrations.Migration): 'db_table': 'user_profile', }, ), - migrations.CreateModel( - name='UserResource', - fields=[ - ('id', models.AutoField(primary_key=True, serialize=False)), - ('resource', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='dashboard.Resource')), - ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), - ], - options={ - 'db_table': 'user_resource', - }, - ), ] |