All checks were successful
Build And Test / build-and-push (push) Successful in 2m5s
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
26 lines
905 B
Python
26 lines
905 B
Python
# Generated by Django 4.2.14 on 2026-01-20 13:58
|
|
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('blog', '0003_tag_post_tags'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Attachment',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('file', models.FileField(upload_to='attachments/%Y/%m/%d/')),
|
|
('original_name', models.CharField(max_length=255)),
|
|
('file_size', models.PositiveIntegerField()),
|
|
('uploaded_at', models.DateTimeField(auto_now_add=True)),
|
|
('post', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='attachments', to='blog.post')),
|
|
],
|
|
),
|
|
]
|