Initial commit
This commit is contained in:
35
main/migrations/0003_publicfile_remove_publicmessage_file.py
Normal file
35
main/migrations/0003_publicfile_remove_publicmessage_file.py
Normal file
@@ -0,0 +1,35 @@
|
||||
# Generated by Django 5.1.4 on 2025-01-04 13:12
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("main", "0002_publicmessage"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name="PublicFile",
|
||||
fields=[
|
||||
(
|
||||
"id",
|
||||
models.BigAutoField(
|
||||
auto_created=True,
|
||||
primary_key=True,
|
||||
serialize=False,
|
||||
verbose_name="ID",
|
||||
),
|
||||
),
|
||||
("name", models.CharField(blank=True, max_length=100)),
|
||||
("file", models.FileField(upload_to="public_uploads/")),
|
||||
("description", models.TextField(blank=True)),
|
||||
("created_at", models.DateTimeField(auto_now_add=True)),
|
||||
],
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name="publicmessage",
|
||||
name="file",
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user