/usr/lib/python3/dist-packages/kombu/transport/django/migrations/0001_initial.py is in python3-kombu 3.0.33-1ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Message',
fields=[
('id', models.AutoField(
verbose_name='ID', serialize=False,
auto_created=True, primary_key=True)),
('visible', models.BooleanField(default=True, db_index=True)),
('sent_at', models.DateTimeField(
db_index=True, auto_now_add=True, null=True)),
('payload', models.TextField(verbose_name='payload')),
],
options={
'db_table': 'djkombu_message',
'verbose_name': 'message',
'verbose_name_plural': 'messages',
},
),
migrations.CreateModel(
name='Queue',
fields=[
('id', models.AutoField(
verbose_name='ID', serialize=False,
auto_created=True, primary_key=True)),
('name', models.CharField(
unique=True, max_length=200, verbose_name='name')),
],
options={
'db_table': 'djkombu_queue',
'verbose_name': 'queue',
'verbose_name_plural': 'queues',
},
),
migrations.AddField(
model_name='message',
name='queue',
field=models.ForeignKey(
related_name='messages', to='kombu_transport_django.Queue'),
),
]
|