Provide SQL migrations for the removal of host aliases

We can start providing SQL migrations now that the API and database
have largely settled.

Change-Id: I764c5ea473cbcc291bab2c7cd061cd78b34c7211
This commit is contained in:
David Moreau Simard
2019-05-23 13:35:56 -04:00
parent 0aeee1fa5e
commit f946cd19a1
2 changed files with 19 additions and 17 deletions

View File

@@ -1,20 +1,4 @@
# Copyright (c) 2019 Red Hat, Inc.
#
# This file is part of ARA Records Ansible.
#
# ARA is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# ARA is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with ARA. If not, see <http://www.gnu.org/licenses/>.
# Generated by Django 2.2.1 on 2019-05-23 14:26
# Generated by Django 2.2.1 on 2019-05-17 10:13
from django.db import migrations, models
import django.db.models.deletion
@@ -62,6 +46,7 @@ class Migration(migrations.Migration):
('updated', models.DateTimeField(auto_now=True)),
('name', models.CharField(max_length=255)),
('facts', models.BinaryField(max_length=4294967295)),
('alias', models.CharField(max_length=255, null=True)),
('changed', models.IntegerField(default=0)),
('failed', models.IntegerField(default=0)),
('ok', models.IntegerField(default=0)),

View File

@@ -0,0 +1,17 @@
# Generated by Django 2.2.1 on 2019-05-23 17:34
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('api', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='host',
name='alias',
),
]