Skip to content

Commit

Permalink
[migrations] Updated indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
nemesifier committed May 15, 2017
1 parent 714fd5f commit f5fb628
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions openwisp_controller/config/migrations/0008_update_indexes.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-05-15 16:41
from __future__ import unicode_literals

import django.core.validators
from django.db import migrations, models
import re


class Migration(migrations.Migration):

dependencies = [
('config', '0007_simplify_config'),
]

operations = [
migrations.AlterField(
model_name='device',
name='mac_address',
field=models.CharField(db_index=True, help_text='primary mac address', max_length=17, unique=True, validators=[django.core.validators.RegexValidator(re.compile('^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})', 32), code='invalid', message='Must be a valid mac address.')]),
),
migrations.AlterField(
model_name='device',
name='model',
field=models.CharField(blank=True, db_index=True, help_text='device model and manufacturer', max_length=64),
),
migrations.AlterField(
model_name='device',
name='name',
field=models.CharField(db_index=True, max_length=64, unique=True),
),
migrations.AlterField(
model_name='device',
name='os',
field=models.CharField(blank=True, db_index=True, help_text='operating system identifier', max_length=128, verbose_name='operating system'),
),
migrations.AlterField(
model_name='template',
name='name',
field=models.CharField(db_index=True, max_length=64, unique=True),
),
migrations.AlterField(
model_name='vpn',
name='name',
field=models.CharField(db_index=True, max_length=64, unique=True),
),
]

0 comments on commit f5fb628

Please sign in to comment.