From: maxbr Date: Mon, 22 Aug 2016 16:50:33 +0000 (+0200) Subject: Remove database migration files X-Git-Tag: 6.0.0~142^2~3 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F35%2F19235%2F1;p=pharos.git Remove database migration files JIRA: RELENG-12 Signed-off-by: maxbr --- diff --git a/tools/pharos-dashboard/.gitignore b/tools/pharos-dashboard/.gitignore index b5e9284a..9eb1cfde 100644 --- a/tools/pharos-dashboard/.gitignore +++ b/tools/pharos-dashboard/.gitignore @@ -19,6 +19,7 @@ coverage.xml # Django: *.log *.pot +migrations/ # KDE: .directory diff --git a/tools/pharos-dashboard/account/migrations/0001_initial.py b/tools/pharos-dashboard/account/migrations/0001_initial.py deleted file mode 100644 index 4ff9510a..00000000 --- a/tools/pharos-dashboard/account/migrations/0001_initial.py +++ /dev/null @@ -1,33 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10 on 2016-08-15 12:19 -from __future__ import unicode_literals - -from django.conf import settings -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - initial = True - - dependencies = [ - migrations.swappable_dependency(settings.AUTH_USER_MODEL), - ] - - operations = [ - migrations.CreateModel( - name='UserProfile', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('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)), - ], - options={ - 'db_table': 'user_profile', - }, - ), - ] diff --git a/tools/pharos-dashboard/account/migrations/0002_auto_20160816_1511.py b/tools/pharos-dashboard/account/migrations/0002_auto_20160816_1511.py deleted file mode 100644 index 3fcd989a..00000000 --- a/tools/pharos-dashboard/account/migrations/0002_auto_20160816_1511.py +++ /dev/null @@ -1,27 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10 on 2016-08-16 15:11 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('account', '0001_initial'), - ] - - operations = [ - migrations.AddField( - model_name='userprofile', - name='oauth_secret', - field=models.CharField(default='', max_length=1024), - preserve_default=False, - ), - migrations.AddField( - model_name='userprofile', - name='oauth_token', - field=models.CharField(default='', max_length=1024), - preserve_default=False, - ), - ] diff --git a/tools/pharos-dashboard/account/migrations/0002_userprofile_timezone.py b/tools/pharos-dashboard/account/migrations/0002_userprofile_timezone.py deleted file mode 100644 index ea67598a..00000000 --- a/tools/pharos-dashboard/account/migrations/0002_userprofile_timezone.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10 on 2016-08-12 13:17 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('account', '0001_initial'), - ] - - operations = [ - migrations.AddField( - model_name='userprofile', - name='timezone', - field=models.CharField(default='UTC', max_length=100), - ), - ] diff --git a/tools/pharos-dashboard/account/migrations/0003_auto_20160819_1024.py b/tools/pharos-dashboard/account/migrations/0003_auto_20160819_1024.py deleted file mode 100644 index b648844e..00000000 --- a/tools/pharos-dashboard/account/migrations/0003_auto_20160819_1024.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10 on 2016-08-19 10:24 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('account', '0002_auto_20160816_1511'), - ] - - operations = [ - migrations.RenameField( - model_name='userprofile', - old_name='pgpkey', - new_name='pgp_pupblic_key', - ), - migrations.RenameField( - model_name='userprofile', - old_name='sshkey', - new_name='ssh_public_key', - ), - ] diff --git a/tools/pharos-dashboard/account/migrations/0003_userprofile_registration_complete.py b/tools/pharos-dashboard/account/migrations/0003_userprofile_registration_complete.py deleted file mode 100644 index d6114434..00000000 --- a/tools/pharos-dashboard/account/migrations/0003_userprofile_registration_complete.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10 on 2016-08-12 17:09 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('account', '0002_userprofile_timezone'), - ] - - operations = [ - migrations.AddField( - model_name='userprofile', - name='registration_complete', - field=models.BooleanField(default=False), - ), - ] diff --git a/tools/pharos-dashboard/account/migrations/0004_auto_20160812_1805.py b/tools/pharos-dashboard/account/migrations/0004_auto_20160812_1805.py deleted file mode 100644 index cb228557..00000000 --- a/tools/pharos-dashboard/account/migrations/0004_auto_20160812_1805.py +++ /dev/null @@ -1,26 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10 on 2016-08-12 18:05 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('account', '0003_userprofile_registration_complete'), - ] - - operations = [ - migrations.AddField( - model_name='userprofile', - name='gpgkey', - field=models.CharField(default='a', max_length=2048), - preserve_default=False, - ), - migrations.AlterField( - model_name='userprofile', - name='sshkey', - field=models.CharField(max_length=2048), - ), - ] diff --git a/tools/pharos-dashboard/account/migrations/0004_auto_20160819_1055.py b/tools/pharos-dashboard/account/migrations/0004_auto_20160819_1055.py deleted file mode 100644 index 51af0aa9..00000000 --- a/tools/pharos-dashboard/account/migrations/0004_auto_20160819_1055.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10 on 2016-08-19 10:55 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('account', '0003_auto_20160819_1024'), - ] - - operations = [ - migrations.RenameField( - model_name='userprofile', - old_name='pgp_pupblic_key', - new_name='pgp_public_key', - ), - ] diff --git a/tools/pharos-dashboard/account/migrations/0005_remove_userprofile_registration_complete.py b/tools/pharos-dashboard/account/migrations/0005_remove_userprofile_registration_complete.py deleted file mode 100644 index fa4bf729..00000000 --- a/tools/pharos-dashboard/account/migrations/0005_remove_userprofile_registration_complete.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10 on 2016-08-13 10:49 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('account', '0004_auto_20160812_1805'), - ] - - operations = [ - migrations.RemoveField( - model_name='userprofile', - name='registration_complete', - ), - ] diff --git a/tools/pharos-dashboard/account/migrations/0006_auto_20160813_1443.py b/tools/pharos-dashboard/account/migrations/0006_auto_20160813_1443.py deleted file mode 100644 index 7d9cd58e..00000000 --- a/tools/pharos-dashboard/account/migrations/0006_auto_20160813_1443.py +++ /dev/null @@ -1,26 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10 on 2016-08-13 14:43 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('account', '0005_remove_userprofile_registration_complete'), - ] - - operations = [ - migrations.RemoveField( - model_name='userresource', - name='resource', - ), - migrations.RemoveField( - model_name='userresource', - name='user', - ), - migrations.DeleteModel( - name='UserResource', - ), - ] diff --git a/tools/pharos-dashboard/account/migrations/0007_auto_20160814_1056.py b/tools/pharos-dashboard/account/migrations/0007_auto_20160814_1056.py deleted file mode 100644 index 2d1bbaeb..00000000 --- a/tools/pharos-dashboard/account/migrations/0007_auto_20160814_1056.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10 on 2016-08-14 10:56 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('account', '0006_auto_20160813_1443'), - ] - - operations = [ - migrations.RenameField( - model_name='userprofile', - old_name='gpgkey', - new_name='pgpkey', - ), - ] diff --git a/tools/pharos-dashboard/booking/migrations/0001_initial.py b/tools/pharos-dashboard/booking/migrations/0001_initial.py deleted file mode 100644 index 9706b812..00000000 --- a/tools/pharos-dashboard/booking/migrations/0001_initial.py +++ /dev/null @@ -1,34 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10 on 2016-08-15 12:19 -from __future__ import unicode_literals - -from django.conf import settings -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - initial = True - - dependencies = [ - ('dashboard', '0001_initial'), - migrations.swappable_dependency(settings.AUTH_USER_MODEL), - ] - - operations = [ - migrations.CreateModel( - name='Booking', - fields=[ - ('id', models.AutoField(primary_key=True, serialize=False)), - ('start', models.DateTimeField()), - ('end', models.DateTimeField()), - ('purpose', models.CharField(max_length=300)), - ('resource', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='dashboard.Resource')), - ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), - ], - options={ - 'db_table': 'booking', - }, - ), - ] diff --git a/tools/pharos-dashboard/booking/migrations/0002_remove_booking_deleted.py b/tools/pharos-dashboard/booking/migrations/0002_remove_booking_deleted.py deleted file mode 100644 index 335379d5..00000000 --- a/tools/pharos-dashboard/booking/migrations/0002_remove_booking_deleted.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10 on 2016-08-13 12:50 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('booking', '0001_initial'), - ] - - operations = [ - migrations.RemoveField( - model_name='booking', - name='deleted', - ), - ] diff --git a/tools/pharos-dashboard/booking/migrations/0003_remove_booking_status.py b/tools/pharos-dashboard/booking/migrations/0003_remove_booking_status.py deleted file mode 100644 index 95089a7a..00000000 --- a/tools/pharos-dashboard/booking/migrations/0003_remove_booking_status.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10 on 2016-08-13 12:51 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('booking', '0002_remove_booking_deleted'), - ] - - operations = [ - migrations.RemoveField( - model_name='booking', - name='status', - ), - ] diff --git a/tools/pharos-dashboard/dashboard/migrations/0001_initial.py b/tools/pharos-dashboard/dashboard/migrations/0001_initial.py deleted file mode 100644 index 6343b463..00000000 --- a/tools/pharos-dashboard/dashboard/migrations/0001_initial.py +++ /dev/null @@ -1,40 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10 on 2016-08-15 12:19 -from __future__ import unicode_literals - -from django.conf import settings -from django.db import migrations, models - - -class Migration(migrations.Migration): - - initial = True - - dependencies = [ - migrations.swappable_dependency(settings.AUTH_USER_MODEL), - ] - - operations = [ - migrations.CreateModel( - name='Resource', - fields=[ - ('id', models.AutoField(primary_key=True, serialize=False)), - ('name', models.CharField(max_length=100, unique=True)), - ('slavename', models.CharField(blank=True, max_length=50, null=True)), - ('description', models.CharField(blank=True, max_length=300, null=True)), - ('url', models.CharField(blank=True, max_length=100, null=True)), - ('owners', models.ManyToManyField(to=settings.AUTH_USER_MODEL)), - ], - options={ - 'db_table': 'resource', - }, - ), - migrations.CreateModel( - name='ResourceUtilization', - fields=[ - ('timestamp', models.DateTimeField(auto_created=True)), - ('id', models.AutoField(primary_key=True, serialize=False)), - ('pod_status', models.IntegerField()), - ], - ), - ] diff --git a/tools/pharos-dashboard/dashboard/migrations/0002_auto_20160815_1511.py b/tools/pharos-dashboard/dashboard/migrations/0002_auto_20160815_1511.py deleted file mode 100644 index 67822a72..00000000 --- a/tools/pharos-dashboard/dashboard/migrations/0002_auto_20160815_1511.py +++ /dev/null @@ -1,27 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10 on 2016-08-15 15:11 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('jenkins', '0002_auto_20160815_1226'), - ('dashboard', '0001_initial'), - ] - - operations = [ - migrations.RemoveField( - model_name='resource', - name='slavename', - ), - migrations.AddField( - model_name='resource', - name='slave', - field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.DO_NOTHING, to='jenkins.JenkinsSlave'), - preserve_default=False, - ), - ] diff --git a/tools/pharos-dashboard/dashboard/migrations/0002_resourceutilization.py b/tools/pharos-dashboard/dashboard/migrations/0002_resourceutilization.py deleted file mode 100644 index 8e10acf8..00000000 --- a/tools/pharos-dashboard/dashboard/migrations/0002_resourceutilization.py +++ /dev/null @@ -1,23 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10 on 2016-08-13 12:50 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('dashboard', '0001_initial'), - ] - - operations = [ - migrations.CreateModel( - name='ResourceUtilization', - fields=[ - ('timestamp', models.DateTimeField(auto_created=True)), - ('id', models.AutoField(primary_key=True, serialize=False)), - ('pod_status', models.IntegerField()), - ], - ), - ] diff --git a/tools/pharos-dashboard/dashboard/migrations/0003_auto_20160813_1302.py b/tools/pharos-dashboard/dashboard/migrations/0003_auto_20160813_1302.py deleted file mode 100644 index 8c4c2139..00000000 --- a/tools/pharos-dashboard/dashboard/migrations/0003_auto_20160813_1302.py +++ /dev/null @@ -1,23 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10 on 2016-08-13 13:02 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('dashboard', '0002_resourceutilization'), - ] - - operations = [ - migrations.RemoveField( - model_name='resource', - name='active', - ), - migrations.RemoveField( - model_name='resource', - name='bookable', - ), - ] diff --git a/tools/pharos-dashboard/dashboard/migrations/0003_auto_20160815_1512.py b/tools/pharos-dashboard/dashboard/migrations/0003_auto_20160815_1512.py deleted file mode 100644 index 53b4fcd4..00000000 --- a/tools/pharos-dashboard/dashboard/migrations/0003_auto_20160815_1512.py +++ /dev/null @@ -1,24 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10 on 2016-08-15 15:12 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('dashboard', '0002_auto_20160815_1511'), - ] - - operations = [ - migrations.RemoveField( - model_name='resource', - name='slave', - ), - migrations.AddField( - model_name='resource', - name='slavename', - field=models.CharField(blank=True, max_length=50, null=True), - ), - ] diff --git a/tools/pharos-dashboard/dashboard/migrations/0004_resource_owners.py b/tools/pharos-dashboard/dashboard/migrations/0004_resource_owners.py deleted file mode 100644 index b851588c..00000000 --- a/tools/pharos-dashboard/dashboard/migrations/0004_resource_owners.py +++ /dev/null @@ -1,22 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10 on 2016-08-13 14:43 -from __future__ import unicode_literals - -from django.conf import settings -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - migrations.swappable_dependency(settings.AUTH_USER_MODEL), - ('dashboard', '0003_auto_20160813_1302'), - ] - - operations = [ - migrations.AddField( - model_name='resource', - name='owners', - field=models.ManyToManyField(to=settings.AUTH_USER_MODEL), - ), - ] diff --git a/tools/pharos-dashboard/dashboard/migrations/0004_resource_slave.py b/tools/pharos-dashboard/dashboard/migrations/0004_resource_slave.py deleted file mode 100644 index 82d45f0b..00000000 --- a/tools/pharos-dashboard/dashboard/migrations/0004_resource_slave.py +++ /dev/null @@ -1,23 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10 on 2016-08-15 15:13 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('jenkins', '0002_auto_20160815_1226'), - ('dashboard', '0003_auto_20160815_1512'), - ] - - operations = [ - migrations.AddField( - model_name='resource', - name='slave', - field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.DO_NOTHING, to='jenkins.JenkinsSlave'), - preserve_default=False, - ), - ] diff --git a/tools/pharos-dashboard/dashboard/migrations/0005_remove_resource_slavename.py b/tools/pharos-dashboard/dashboard/migrations/0005_remove_resource_slavename.py deleted file mode 100644 index 339f8c3f..00000000 --- a/tools/pharos-dashboard/dashboard/migrations/0005_remove_resource_slavename.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10 on 2016-08-15 15:17 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('dashboard', '0004_resource_slave'), - ] - - operations = [ - migrations.RemoveField( - model_name='resource', - name='slavename', - ), - ] diff --git a/tools/pharos-dashboard/dashboard/migrations/0006_delete_resourceutilization.py b/tools/pharos-dashboard/dashboard/migrations/0006_delete_resourceutilization.py deleted file mode 100644 index fb637bd7..00000000 --- a/tools/pharos-dashboard/dashboard/migrations/0006_delete_resourceutilization.py +++ /dev/null @@ -1,18 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10 on 2016-08-16 10:42 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('dashboard', '0005_remove_resource_slavename'), - ] - - operations = [ - migrations.DeleteModel( - name='ResourceUtilization', - ), - ] diff --git a/tools/pharos-dashboard/jenkins/migrations/0001_initial.py b/tools/pharos-dashboard/jenkins/migrations/0001_initial.py deleted file mode 100644 index a9bb8d56..00000000 --- a/tools/pharos-dashboard/jenkins/migrations/0001_initial.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10 on 2016-08-15 12:19 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - initial = True - - dependencies = [ - ] - - operations = [ - migrations.CreateModel( - name='JenkinsSlave', - fields=[ - ('id', models.AutoField(primary_key=True, serialize=False)), - ('name', models.CharField(max_length=100, unique=True)), - ('status', models.CharField(default='offline', max_length=30)), - ('url', models.CharField(max_length=1024)), - ('ci_slave', models.BooleanField(default=False)), - ('dev_pod', models.BooleanField(default=False)), - ('building', models.BooleanField(default=False)), - ('last_job_name', models.CharField(default='', max_length=1024)), - ('last_job_url', models.CharField(default='', max_length=1024)), - ('last_job_scenario', models.CharField(default='', max_length=50)), - ('last_job_branch', models.CharField(default='', max_length=50)), - ('last_job_installer', models.CharField(default='', max_length=50)), - ('last_job_result', models.CharField(default='', max_length=30)), - ], - options={ - 'db_table': 'jenkins_slave', - }, - ), - migrations.CreateModel( - name='JenkinsStatistic', - fields=[ - ('timestamp', models.DateTimeField(auto_created=True)), - ('id', models.AutoField(primary_key=True, serialize=False)), - ('offline', models.BooleanField(default=False)), - ('idle', models.BooleanField(default=False)), - ('online', models.BooleanField(default=False)), - ('slave', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='jenkins.JenkinsSlave')), - ], - options={ - 'db_table': 'jenkins_statistic', - }, - ), - ] diff --git a/tools/pharos-dashboard/jenkins/migrations/0002_auto_20160815_1226.py b/tools/pharos-dashboard/jenkins/migrations/0002_auto_20160815_1226.py deleted file mode 100644 index f1cf7f99..00000000 --- a/tools/pharos-dashboard/jenkins/migrations/0002_auto_20160815_1226.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10 on 2016-08-15 12:26 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('jenkins', '0001_initial'), - ] - - operations = [ - migrations.AlterField( - model_name='jenkinsstatistic', - name='timestamp', - field=models.DateTimeField(auto_now_add=True), - ), - ]