1
0
Fork 0
spejstore-new/storage/migrations/0003_auto_20170424_2002.py

50 lines
1.4 KiB
Python
Raw Permalink Normal View History

2017-04-28 12:14:27 +00:00
# -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2017-04-24 20:02
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
from django.contrib.postgres.fields import HStoreField
2017-04-28 12:14:27 +00:00
class Migration(migrations.Migration):
dependencies = [
2023-07-11 13:34:35 +00:00
("storage", "0002_auto_20170215_0115"),
2017-04-28 12:14:27 +00:00
]
operations = [
migrations.CreateModel(
2023-07-11 13:34:35 +00:00
name="Label",
2017-04-28 12:14:27 +00:00
fields=[
2023-07-11 13:34:35 +00:00
(
"id",
models.CharField(max_length=64, primary_key=True, serialize=False),
),
("revision", models.IntegerField()),
2017-04-28 12:14:27 +00:00
],
),
migrations.AlterModelOptions(
2023-07-11 13:34:35 +00:00
name="item",
options={"ordering": ("path",)},
2017-04-28 12:14:27 +00:00
),
migrations.AlterField(
2023-07-11 13:34:35 +00:00
model_name="item",
name="categories",
field=models.ManyToManyField(blank=True, to="storage.Category"),
2017-04-28 12:14:27 +00:00
),
migrations.AlterField(
2023-07-11 13:34:35 +00:00
model_name="item",
name="props",
field=HStoreField(blank=True),
2017-04-28 12:14:27 +00:00
),
migrations.AddField(
2023-07-11 13:34:35 +00:00
model_name="label",
name="item",
field=models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
related_name="labels",
to="storage.Item",
),
2017-04-28 12:14:27 +00:00
),
]