Skip to content
Permalink
Browse files

add initial migration for the routeview app.

add --fake-initial option when doing the migrations so that existing installs will ignore the initial migration

svn path=/branches/tk705/; revision=6449
  • Loading branch information
Michael Elkins
Michael Elkins committed Jul 19, 2016
1 parent 3b08748 commit eef1fe5d4f10951b2e0d81a00ee13063a6881d87
@@ -32,7 +32,7 @@ setup_sql() {
sudo -u rpki rpki-manage migrate rpkidb --settings rpki.django_settings.rpkid
sudo -u rpki rpki-manage migrate pubdb --settings rpki.django_settings.pubd
sudo -u rpki rpki-manage migrate irdb --settings rpki.django_settings.irdb
sudo -u rpki rpki-manage migrate --settings rpki.django_settings.gui
sudo -u rpki rpki-manage migrate --settings rpki.django_settings.gui --fake-initial
}

setup_bpki() {
@@ -0,0 +1,41 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-07-19 23:18
from __future__ import unicode_literals

from django.db import migrations, models
import rpki.gui.models


class Migration(migrations.Migration):

initial = True

dependencies = [
]

operations = [
migrations.CreateModel(
name='RouteOrigin',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('prefix_min', rpki.gui.models.IPAddressField(db_index=True)),
('prefix_max', rpki.gui.models.IPAddressField(db_index=True)),
('asn', models.PositiveIntegerField(help_text=b'origin AS')),
],
options={
'ordering': ('prefix_min', '-prefix_max'),
},
),
migrations.CreateModel(
name='RouteOriginV6',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('prefix_min', rpki.gui.models.IPAddressField(db_index=True)),
('prefix_max', rpki.gui.models.IPAddressField(db_index=True)),
('asn', models.PositiveIntegerField(help_text=b'origin AS')),
],
options={
'ordering': ('prefix_min', '-prefix_max'),
},
),
]
No changes.
@@ -106,6 +106,7 @@ class autoconf:
"templatetags/*.py"]

package_data["rpki.gui.gui_rpki_cache"] = ["migrations/*.py"]
package_data["rpki.gui.routeview"] = ["migrations/*.py"]


data_files += [(autoconf.datarootdir + "/rpki/wsgi",

0 comments on commit eef1fe5

Please sign in to comment.
You can’t perform that action at this time.