From fc56e66555ca7c365381ad2a39ec83df6f45a39f Mon Sep 17 00:00:00 2001 From: andrem Date: Fri, 18 Mar 2016 12:07:42 -0300 Subject: [PATCH] add migration for new column details for hypervisor. --- computes/migrations/0002_compute_details.py | 18 ++++++++++++++++++ computes/models.py | 1 + 2 files changed, 19 insertions(+) create mode 100644 computes/migrations/0002_compute_details.py diff --git a/computes/migrations/0002_compute_details.py b/computes/migrations/0002_compute_details.py new file mode 100644 index 0000000..1e0fdf5 --- /dev/null +++ b/computes/migrations/0002_compute_details.py @@ -0,0 +1,18 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations + +class Migration(migrations.Migration): + + dependencies = [ + ('computes', '0001_initial'), + ] + + operations = [ + migrations.AddField( + model_name='Compute', + name='details', + field=models.CharField(max_length=50, null=True, blank=True), + ), + ] diff --git a/computes/models.py b/computes/models.py index 6ee7de8..df9bf02 100644 --- a/computes/models.py +++ b/computes/models.py @@ -6,6 +6,7 @@ class Compute(models.Model): hostname = models.CharField(max_length=20) login = models.CharField(max_length=20) password = models.CharField(max_length=14, blank=True, null=True) + details = models.CharField(max_length=50, null=True, blank=True) type = models.IntegerField() def __unicode__(self):