"Fossies" - the Fresh Open Source Software Archive

Member "seahub-7.1.0-pro/seahub/drafts/migrations/0003_auto_20190301_0648.py" (30 Dec 2019, 2074 Bytes) of package /linux/www/seahub-7.1.0-pro.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Python source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 # -*- coding: utf-8 -*-
    2 # Generated by Django 1.11.15 on 2019-03-01 06:48
    3 
    4 
    5 from django.db import migrations, models
    6 import django.db.models.deletion
    7 import seahub.base.fields
    8 import uuid
    9 
   10 
   11 class Migration(migrations.Migration):
   12 
   13     dependencies = [
   14         ('drafts', '0002_draftreview_author'),
   15     ]
   16 
   17     operations = [
   18         migrations.CreateModel(
   19             name='DraftReviewer',
   20             fields=[
   21                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
   22                 ('reviewer', seahub.base.fields.LowerCaseCharField(db_index=True, max_length=255)),
   23             ],
   24         ),
   25         migrations.RemoveField(
   26             model_name='draftreview',
   27             name='draft_id',
   28         ),
   29         migrations.RemoveField(
   30             model_name='draftreview',
   31             name='origin_file_uuid',
   32         ),
   33         migrations.RemoveField(
   34             model_name='reviewcomment',
   35             name='review_id',
   36         ),
   37         migrations.RemoveField(
   38             model_name='reviewreviewer',
   39             name='review_id',
   40         ),
   41         migrations.AddField(
   42             model_name='draft',
   43             name='publish_file_version',
   44             field=models.CharField(max_length=100, null=True),
   45         ),
   46         migrations.AddField(
   47             model_name='draft',
   48             name='status',
   49             field=models.CharField(default='open', max_length=20),
   50         ),
   51         migrations.AlterField(
   52             model_name='draft',
   53             name='origin_file_uuid',
   54             field=models.UUIDField(db_index=True, default=uuid.uuid4),
   55         ),
   56         migrations.DeleteModel(
   57             name='DraftReview',
   58         ),
   59         migrations.DeleteModel(
   60             name='ReviewComment',
   61         ),
   62         migrations.DeleteModel(
   63             name='ReviewReviewer',
   64         ),
   65         migrations.AddField(
   66             model_name='draftreviewer',
   67             name='draft',
   68             field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='drafts.Draft'),
   69         ),
   70     ]