0007_auto_20170205_1239.py 1.45 KB
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
# -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-05 12:39
from __future__ import unicode_literals

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

dependencies = [
('elasticity', '0006_auto_20170205_1124'),
]

operations = [
migrations.RemoveField(
model_name='elasticity',
name='cluster',
),
migrations.AddField(
model_name='elasticity',
name='cluster_type',
field=models.CharField(choices=[('CASSANDRA39', 'Apache Cassandra 3.9'), ('HBASE', 'Apache HBase 0.98')], default='Apache Cassandra 3.9', max_length=200, verbose_name='NoSQL Database'),
),
migrations.AddField(
model_name='elasticity',
name='init_cluster_size',
field=models.IntegerField(default=2, verbose_name='Initial number of NoSQL nodes'),
),
migrations.AddField(
model_name='elasticity',
name='owner',
field=models.CharField(max_length=200, null=True, verbose_name='DB Owner'),
),
migrations.AlterField(
model_name='nosqlinstance',
name='cluster',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='elasticity.Elasticity', verbose_name='NoSQL Database Cluster'),
),
migrations.DeleteModel(
name='NoSQLCluster',
),
]