"Fossies" - the Fresh Open Source Software Archive

Member "seahub-7.1.0-pro/seahub/revision_tag/migrations/0001_initial.py" (30 Dec 2019, 1336 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.11 on 2018-03-21 08:44
    3 
    4 
    5 from django.db import migrations, models
    6 import django.db.models.deletion
    7 import seahub.base.fields
    8 
    9 
   10 class Migration(migrations.Migration):
   11 
   12     initial = True
   13 
   14     dependencies = [
   15     ]
   16 
   17     operations = [
   18         migrations.CreateModel(
   19             name='RevisionTags',
   20             fields=[
   21                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
   22                 ('repo_id', models.CharField(db_index=True, max_length=36)),
   23                 ('path', models.TextField(default=b'/')),
   24                 ('revision_id', models.CharField(db_index=True, max_length=255)),
   25                 ('username', seahub.base.fields.LowerCaseCharField(db_index=True, max_length=255)),
   26             ],
   27         ),
   28         migrations.CreateModel(
   29             name='Tags',
   30             fields=[
   31                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
   32                 ('name', models.CharField(max_length=255, unique=True)),
   33             ],
   34         ),
   35         migrations.AddField(
   36             model_name='revisiontags',
   37             name='tag',
   38             field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='revision_tag.Tags'),
   39         ),
   40     ]