mirror of
https://github.com/dartdavros/chatballs.git
synced 2026-10-09 10:54:59 +03:00
🚑 fix(ci): preserve branding defaults in migration tests
This commit is contained in:
1 parent
f8fb9162a6
commit
296835dfd4
2 files changed
+47
-2
No files matched your search
+38
@@ -0,0 +1,38 @@
|
||||
from django.db import migrations, models
|
||||
|
||||
import hub_platform.identity.models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
dependencies = [
|
||||
("identity", "0017_organization_branding"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name="organization",
|
||||
name="logo",
|
||||
field=models.FileField(
|
||||
blank=True,
|
||||
db_default="",
|
||||
default="",
|
||||
max_length=512,
|
||||
upload_to=hub_platform.identity.models.organization_logo_upload_path,
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name="organization",
|
||||
name="logo_content_type",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
db_default="",
|
||||
default="",
|
||||
max_length=64,
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name="organization",
|
||||
name="logo_size",
|
||||
field=models.PositiveBigIntegerField(db_default=0, default=0),
|
||||
),
|
||||
]
|
||||
@@ -94,9 +94,16 @@ class Organization(models.Model):
|
||||
upload_to=organization_logo_upload_path,
|
||||
max_length=512,
|
||||
blank=True,
|
||||
default="",
|
||||
db_default="",
|
||||
)
|
||||
logo_content_type = models.CharField(max_length=64, blank=True)
|
||||
logo_size = models.PositiveBigIntegerField(default=0)
|
||||
logo_content_type = models.CharField(
|
||||
max_length=64,
|
||||
blank=True,
|
||||
default="",
|
||||
db_default="",
|
||||
)
|
||||
logo_size = models.PositiveBigIntegerField(default=0, db_default=0)
|
||||
created_at = models.DateTimeField(auto_now_add=True)
|
||||
|
||||
def __str__(self) -> str:
|
||||
|
||||
Reference in new issue
Block a user