mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-25 07:35:22 +00:00
add migration for new column details for hypervisor.
This commit is contained in:
parent
84fe28e9d7
commit
fc56e66555
2 changed files with 19 additions and 0 deletions
18
computes/migrations/0002_compute_details.py
Normal file
18
computes/migrations/0002_compute_details.py
Normal file
|
@ -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),
|
||||||
|
),
|
||||||
|
]
|
|
@ -6,6 +6,7 @@ class Compute(models.Model):
|
||||||
hostname = models.CharField(max_length=20)
|
hostname = models.CharField(max_length=20)
|
||||||
login = models.CharField(max_length=20)
|
login = models.CharField(max_length=20)
|
||||||
password = models.CharField(max_length=14, blank=True, null=True)
|
password = models.CharField(max_length=14, blank=True, null=True)
|
||||||
|
details = models.CharField(max_length=50, null=True, blank=True)
|
||||||
type = models.IntegerField()
|
type = models.IntegerField()
|
||||||
|
|
||||||
def __unicode__(self):
|
def __unicode__(self):
|
||||||
|
|
Loading…
Reference in a new issue