|
@@ -24,11 +24,11 @@ class Migration(migrations.Migration):
|
|
|
name='Document',
|
|
name='Document',
|
|
|
fields=[
|
|
fields=[
|
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
|
- ('name', models.CharField(default=b'', max_length=255)),
|
|
|
|
|
- ('description', models.TextField(default=b'')),
|
|
|
|
|
|
|
+ ('name', models.CharField(default='', max_length=255)),
|
|
|
|
|
+ ('description', models.TextField(default='')),
|
|
|
('last_modified', models.DateTimeField(auto_now=True, db_index=True, verbose_name='Last modified')),
|
|
('last_modified', models.DateTimeField(auto_now=True, db_index=True, verbose_name='Last modified')),
|
|
|
('version', models.SmallIntegerField(default=1, verbose_name='Schema version')),
|
|
('version', models.SmallIntegerField(default=1, verbose_name='Schema version')),
|
|
|
- ('extra', models.TextField(default=b'')),
|
|
|
|
|
|
|
+ ('extra', models.TextField(default='')),
|
|
|
('object_id', models.PositiveIntegerField()),
|
|
('object_id', models.PositiveIntegerField()),
|
|
|
('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType')),
|
|
('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType')),
|
|
|
],
|
|
],
|
|
@@ -37,12 +37,12 @@ class Migration(migrations.Migration):
|
|
|
name='Document2',
|
|
name='Document2',
|
|
|
fields=[
|
|
fields=[
|
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
|
- ('name', models.CharField(default=b'', max_length=255)),
|
|
|
|
|
- ('description', models.TextField(default=b'')),
|
|
|
|
|
|
|
+ ('name', models.CharField(default='', max_length=255)),
|
|
|
|
|
+ ('description', models.TextField(default='')),
|
|
|
('uuid', models.CharField(db_index=True, default=desktop.models.uuid_default, max_length=36)),
|
|
('uuid', models.CharField(db_index=True, default=desktop.models.uuid_default, max_length=36)),
|
|
|
- ('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'{}')),
|
|
|
|
|
- ('extra', models.TextField(default=b'')),
|
|
|
|
|
|
|
+ ('type', models.CharField(db_index=True, default='', help_text='Type of document, e.g. Hive query, Oozie workflow, Search Dashboard...', max_length=32)),
|
|
|
|
|
+ ('data', models.TextField(default='{}')),
|
|
|
|
|
+ ('extra', models.TextField(default='')),
|
|
|
('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)),
|
|
@@ -56,18 +56,18 @@ class Migration(migrations.Migration):
|
|
|
name='Document2Permission',
|
|
name='Document2Permission',
|
|
|
fields=[
|
|
fields=[
|
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
|
- ('perms', models.CharField(choices=[(b'read', b'read'), (b'write', b'write'), (b'comment', b'comment')], db_index=True, default=b'read', max_length=10)),
|
|
|
|
|
|
|
+ ('perms', models.CharField(choices=[('read', 'read'), ('write', 'write'), ('comment', 'comment')], db_index=True, default='read', max_length=10)),
|
|
|
('doc', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='desktop.Document2')),
|
|
('doc', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='desktop.Document2')),
|
|
|
- ('groups', models.ManyToManyField(db_index=True, db_table=b'documentpermission2_groups', to='auth.Group')),
|
|
|
|
|
|
|
+ ('groups', models.ManyToManyField(db_index=True, db_table='documentpermission2_groups', to='auth.Group')),
|
|
|
],
|
|
],
|
|
|
),
|
|
),
|
|
|
migrations.CreateModel(
|
|
migrations.CreateModel(
|
|
|
name='DocumentPermission',
|
|
name='DocumentPermission',
|
|
|
fields=[
|
|
fields=[
|
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
|
- ('perms', models.CharField(choices=[(b'read', b'read'), (b'write', b'write')], default=b'read', max_length=10)),
|
|
|
|
|
|
|
+ ('perms', models.CharField(choices=[('read', 'read'), ('write', 'write')], default='read', max_length=10)),
|
|
|
('doc', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='desktop.Document')),
|
|
('doc', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='desktop.Document')),
|
|
|
- ('groups', models.ManyToManyField(db_index=True, db_table=b'documentpermission_groups', to='auth.Group')),
|
|
|
|
|
|
|
+ ('groups', models.ManyToManyField(db_index=True, db_table='documentpermission_groups', to='auth.Group')),
|
|
|
],
|
|
],
|
|
|
),
|
|
),
|
|
|
migrations.CreateModel(
|
|
migrations.CreateModel(
|
|
@@ -106,12 +106,12 @@ class Migration(migrations.Migration):
|
|
|
migrations.AddField(
|
|
migrations.AddField(
|
|
|
model_name='documentpermission',
|
|
model_name='documentpermission',
|
|
|
name='users',
|
|
name='users',
|
|
|
- field=models.ManyToManyField(db_index=True, db_table=b'documentpermission_users', to=settings.AUTH_USER_MODEL),
|
|
|
|
|
|
|
+ field=models.ManyToManyField(db_index=True, db_table='documentpermission_users', to=settings.AUTH_USER_MODEL),
|
|
|
),
|
|
),
|
|
|
migrations.AddField(
|
|
migrations.AddField(
|
|
|
model_name='document2permission',
|
|
model_name='document2permission',
|
|
|
name='users',
|
|
name='users',
|
|
|
- field=models.ManyToManyField(db_index=True, db_table=b'documentpermission2_users', to=settings.AUTH_USER_MODEL),
|
|
|
|
|
|
|
+ field=models.ManyToManyField(db_index=True, db_table='documentpermission2_users', to=settings.AUTH_USER_MODEL),
|
|
|
),
|
|
),
|
|
|
migrations.AddField(
|
|
migrations.AddField(
|
|
|
model_name='document2',
|
|
model_name='document2',
|