"Fossies" - the Fresh Open Source Software Archive

Member "apache-pulsar-2.6.0/dashboard/django/stats/migrations/0002_support_deleted_objects.py" (9 Jun 2020, 1572 Bytes) of package /linux/misc/apache-pulsar-2.6.0-src.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. For more information about "0002_support_deleted_objects.py" see the Fossies "Dox" file reference documentation.

    1 # -*- coding: utf-8 -*-
    2 # Generated by Django 1.11.20 on 2019-06-03 13:24
    3 from __future__ import unicode_literals
    4 
    5 from django.db import migrations, models
    6 
    7 
    8 class Migration(migrations.Migration):
    9 
   10     dependencies = [
   11         ('stats', '0001_initial'),
   12     ]
   13 
   14     operations = [
   15         migrations.AddField(
   16             model_name='namespace',
   17             name='deleted',
   18             field=models.BooleanField(default=False),
   19         ),
   20         migrations.AddField(
   21             model_name='namespace',
   22             name='timestamp',
   23             field=models.BigIntegerField(db_index=True, default=0),
   24             preserve_default=False,
   25         ),
   26         migrations.AddField(
   27             model_name='subscription',
   28             name='deleted',
   29             field=models.BooleanField(default=False),
   30         ),
   31         migrations.AddField(
   32             model_name='topic',
   33             name='deleted',
   34             field=models.BooleanField(default=False),
   35         ),
   36         migrations.AlterField(
   37             model_name='namespace',
   38             name='name',
   39             field=models.CharField(max_length=200),
   40         ),
   41         migrations.AlterIndexTogether(
   42             name='namespace',
   43             index_together={('name', 'timestamp', 'deleted')},
   44         ),
   45         migrations.AlterIndexTogether(
   46             name='subscription',
   47             index_together={('name', 'topic', 'timestamp', 'deleted')},
   48         ),
   49         migrations.AlterIndexTogether(
   50             name='topic',
   51             index_together={('name', 'cluster', 'timestamp', 'deleted')},
   52         ),
   53     ]