linkding/bookmarks/migrations/0002_auto_20190629_2303.py

45 lines
1.3 KiB
Python
Raw Normal View History

2019-06-30 05:15:46 +00:00
# Generated by Django 2.2.2 on 2019-06-29 23:03
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
2024-01-27 10:29:16 +00:00
("bookmarks", "0001_initial"),
2019-06-30 05:15:46 +00:00
]
operations = [
migrations.CreateModel(
2024-01-27 10:29:16 +00:00
name="Tag",
2019-06-30 05:15:46 +00:00
fields=[
2024-01-27 10:29:16 +00:00
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("name", models.CharField(max_length=64)),
("date_added", models.DateTimeField()),
(
"owner",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
to=settings.AUTH_USER_MODEL,
),
),
2019-06-30 05:15:46 +00:00
],
),
migrations.AddField(
2024-01-27 10:29:16 +00:00
model_name="bookmark",
name="tags",
field=models.ManyToManyField(to="bookmarks.Tag"),
2019-06-30 05:15:46 +00:00
),
]