jumpserver/apps/settings/migrations/0001_initial.py

40 lines
1.3 KiB
Python
Raw Normal View History

# Generated by Django 2.1.7 on 2019-02-26 03:11
2018-11-13 07:57:44 +00:00
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
2019-03-04 07:38:59 +00:00
('common', '0006_auto_20190304_1515'),
2018-11-13 07:57:44 +00:00
]
2019-03-04 07:38:59 +00:00
state_operations = [
2018-11-13 07:57:44 +00:00
migrations.CreateModel(
name='Setting',
2018-11-13 07:57:44 +00:00
fields=[
2019-03-04 07:38:59 +00:00
('id', models.AutoField(auto_created=True, primary_key=True,
serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=128, unique=True,
verbose_name='Name')),
2018-11-13 07:57:44 +00:00
('value', models.TextField(verbose_name='Value')),
2019-03-04 07:38:59 +00:00
('category',
models.CharField(default='default', max_length=128)),
('encrypted', models.BooleanField(default=False)),
2019-03-04 07:38:59 +00:00
('enabled',
models.BooleanField(default=True, verbose_name='Enabled')),
2018-11-13 07:57:44 +00:00
('comment', models.TextField(verbose_name='Comment')),
],
options={
'verbose_name': 'Setting',
2019-03-04 07:51:17 +00:00
'db_table': 'settings_setting',
},
2018-11-13 07:57:44 +00:00
),
]
2019-03-04 07:38:59 +00:00
operations = [
migrations.SeparateDatabaseAndState(state_operations=state_operations)
]