diff --git a/apps/assets/migrations/0026_auto_20190318_1023.py b/apps/assets/migrations/0026_auto_20190318_1023.py new file mode 100644 index 000000000..71cbfffcc --- /dev/null +++ b/apps/assets/migrations/0026_auto_20190318_1023.py @@ -0,0 +1,43 @@ +# Generated by Django 2.1.7 on 2019-03-18 02:23 + +import assets.models.utils +import django.core.validators +from django.db import migrations, models +import django.db.models.deletion +import uuid + + +class Migration(migrations.Migration): + + dependencies = [ + ('assets', '0025_auto_20190221_1902'), + ] + + operations = [ + migrations.CreateModel( + name='AuthBook', + fields=[ + ('org_id', models.CharField(blank=True, db_index=True, default='', max_length=36, verbose_name='Organization')), + ('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)), + ('name', models.CharField(max_length=128, verbose_name='Name')), + ('username', models.CharField(blank=True, max_length=32, validators=[django.core.validators.RegexValidator('^[0-9a-zA-Z_@\\-\\.]*$', 'Special char not allowed')], verbose_name='Username')), + ('_password', models.CharField(blank=True, max_length=256, null=True, verbose_name='Password')), + ('_private_key', models.TextField(blank=True, max_length=4096, null=True, validators=[assets.models.utils.private_key_validator], verbose_name='SSH private key')), + ('_public_key', models.TextField(blank=True, max_length=4096, verbose_name='SSH public key')), + ('comment', models.TextField(blank=True, verbose_name='Comment')), + ('date_created', models.DateTimeField(auto_now_add=True)), + ('date_updated', models.DateTimeField(auto_now=True)), + ('created_by', models.CharField(max_length=128, null=True, verbose_name='Created by')), + ('is_latest', models.BooleanField(default=False, verbose_name='最新版本')), + ('version', models.IntegerField(default=1, verbose_name='版本')), + ('asset', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='assets.Asset', verbose_name='资产')), + ], + options={ + 'verbose_name': 'AuthBook', + }, + ), + migrations.AlterModelOptions( + name='node', + options={'ordering': ['key'], 'verbose_name': 'Node'}, + ), + ] diff --git a/apps/ops/migrations/0006_auto_20190318_1023.py b/apps/ops/migrations/0006_auto_20190318_1023.py new file mode 100644 index 000000000..f0d88081a --- /dev/null +++ b/apps/ops/migrations/0006_auto_20190318_1023.py @@ -0,0 +1,18 @@ +# Generated by Django 2.1.7 on 2019-03-18 02:23 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('ops', '0005_auto_20181219_1807'), + ] + + operations = [ + migrations.AlterField( + model_name='adhoc', + name='run_as', + field=models.CharField(default='', max_length=64, null=True, verbose_name='Username'), + ), + ]