|
@@ -20,19 +20,6 @@ class Migration(migrations.Migration):
|
|
|
]
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
operations = [
|
|
|
- migrations.CreateModel(
|
|
|
|
|
- name='DefaultConfiguration',
|
|
|
|
|
- fields=[
|
|
|
|
|
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
|
|
|
- ('app', models.CharField(db_index=True, help_text='App that this configuration belongs to.', max_length=32)),
|
|
|
|
|
- ('properties', models.TextField(default=b'[]', help_text='JSON-formatted default properties values.')),
|
|
|
|
|
- ('is_default', models.BooleanField(db_index=True, default=False)),
|
|
|
|
|
- ('groups', models.ManyToManyField(db_index=True, db_table=b'defaultconfiguration_groups', to='auth.Group')),
|
|
|
|
|
- ],
|
|
|
|
|
- options={
|
|
|
|
|
- 'ordering': ['app', '-is_default', 'user'],
|
|
|
|
|
- },
|
|
|
|
|
- ),
|
|
|
|
|
migrations.CreateModel(
|
|
migrations.CreateModel(
|
|
|
name='Document',
|
|
name='Document',
|
|
|
fields=[
|
|
fields=[
|
|
@@ -56,12 +43,9 @@ class Migration(migrations.Migration):
|
|
|
('type', models.CharField(db_index=True, default=b'', help_text='Type of document, e.g. Hive query, Oozie workflow, Search Dashboard...', max_length=32)),
|
|
('type', models.CharField(db_index=True, default=b'', help_text='Type of document, e.g. Hive query, Oozie workflow, Search Dashboard...', max_length=32)),
|
|
|
('data', models.TextField(default=b'{}')),
|
|
('data', models.TextField(default=b'{}')),
|
|
|
('extra', models.TextField(default=b'')),
|
|
('extra', models.TextField(default=b'')),
|
|
|
- ('search', models.TextField(blank=True, help_text='Searchable text for the document.', null=True)),
|
|
|
|
|
('last_modified', models.DateTimeField(auto_now=True, db_index=True, verbose_name='Time last modified')),
|
|
('last_modified', models.DateTimeField(auto_now=True, db_index=True, verbose_name='Time last modified')),
|
|
|
('version', models.SmallIntegerField(db_index=True, default=1, verbose_name='Document version')),
|
|
('version', models.SmallIntegerField(db_index=True, default=1, verbose_name='Document version')),
|
|
|
('is_history', models.BooleanField(db_index=True, default=False)),
|
|
('is_history', models.BooleanField(db_index=True, default=False)),
|
|
|
- ('is_managed', models.BooleanField(db_index=True, default=False, verbose_name='If managed under the cover by Hue and never by the user')),
|
|
|
|
|
- ('is_trashed', models.NullBooleanField(db_index=True, default=False, verbose_name='True if trashed')),
|
|
|
|
|
('dependencies', models.ManyToManyField(db_index=True, related_name='dependents', to='desktop.Document2')),
|
|
('dependencies', models.ManyToManyField(db_index=True, related_name='dependents', to='desktop.Document2')),
|
|
|
],
|
|
],
|
|
|
options={
|
|
options={
|
|
@@ -109,19 +93,6 @@ class Migration(migrations.Migration):
|
|
|
('value', models.TextField(max_length=4096)),
|
|
('value', models.TextField(max_length=4096)),
|
|
|
],
|
|
],
|
|
|
),
|
|
),
|
|
|
- migrations.CreateModel(
|
|
|
|
|
- name='HueUser',
|
|
|
|
|
- fields=[
|
|
|
|
|
- ],
|
|
|
|
|
- options={
|
|
|
|
|
- 'proxy': True,
|
|
|
|
|
- 'indexes': [],
|
|
|
|
|
- },
|
|
|
|
|
- bases=('auth.user',),
|
|
|
|
|
- managers=[
|
|
|
|
|
- ('objects', django.contrib.auth.models.UserManager()),
|
|
|
|
|
- ],
|
|
|
|
|
- ),
|
|
|
|
|
migrations.AddField(
|
|
migrations.AddField(
|
|
|
model_name='userpreferences',
|
|
model_name='userpreferences',
|
|
|
name='user',
|
|
name='user',
|
|
@@ -162,21 +133,6 @@ class Migration(migrations.Migration):
|
|
|
name='tags',
|
|
name='tags',
|
|
|
field=models.ManyToManyField(db_index=True, to='desktop.DocumentTag'),
|
|
field=models.ManyToManyField(db_index=True, to='desktop.DocumentTag'),
|
|
|
),
|
|
),
|
|
|
- migrations.AddField(
|
|
|
|
|
- model_name='defaultconfiguration',
|
|
|
|
|
- name='user',
|
|
|
|
|
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
|
|
|
|
|
- ),
|
|
|
|
|
- migrations.CreateModel(
|
|
|
|
|
- name='Directory',
|
|
|
|
|
- fields=[
|
|
|
|
|
- ],
|
|
|
|
|
- options={
|
|
|
|
|
- 'proxy': True,
|
|
|
|
|
- 'indexes': [],
|
|
|
|
|
- },
|
|
|
|
|
- bases=('desktop.document2',),
|
|
|
|
|
- ),
|
|
|
|
|
migrations.AlterUniqueTogether(
|
|
migrations.AlterUniqueTogether(
|
|
|
name='documenttag',
|
|
name='documenttag',
|
|
|
unique_together=set([('owner', 'tag')]),
|
|
unique_together=set([('owner', 'tag')]),
|