mirror of
https://github.com/makeplane/plane.git
synced 2025-12-25 16:19:43 +01:00
chore: add migration on svg (#5464)
This commit is contained in:
28
apiserver/plane/db/migrations/0075_alter_fileasset_asset.py
Normal file
28
apiserver/plane/db/migrations/0075_alter_fileasset_asset.py
Normal file
@@ -0,0 +1,28 @@
|
||||
# Generated by Django 4.2.11 on 2024-08-29 09:40
|
||||
|
||||
import django.core.validators
|
||||
from django.db import migrations, models
|
||||
import plane.db.models.asset
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("db", "0074_deploy_board_and_project_issues"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name="fileasset",
|
||||
name="asset",
|
||||
field=models.FileField(
|
||||
upload_to=plane.db.models.asset.get_upload_path,
|
||||
validators=[
|
||||
django.core.validators.FileExtensionValidator(
|
||||
allowed_extensions=["jpg", "jpeg", "png"]
|
||||
),
|
||||
plane.db.models.asset.file_size,
|
||||
],
|
||||
),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user