mirror of
https://github.com/makeplane/plane
synced 2025-08-07 19:59:33 +00:00
dev: rearrange migrations and add class calls
This commit is contained in:
@@ -31,7 +31,7 @@ def move_s3_objects(apps, schema_editor):
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
dependencies = [
|
||||
("db", "0046_auto_20230919_1421"),
|
||||
("db", "0047_auto_20230921_0758"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
|
||||
@@ -32,7 +32,7 @@ class FileAsset(BaseModel):
|
||||
validators=[
|
||||
file_size,
|
||||
],
|
||||
storage=PublicS3Storage,
|
||||
storage=PublicS3Storage(),
|
||||
)
|
||||
workspace = models.ForeignKey(
|
||||
"db.Workspace", on_delete=models.CASCADE, null=True, related_name="assets"
|
||||
|
||||
@@ -267,7 +267,7 @@ class IssueAttachment(ProjectBaseModel):
|
||||
validators=[
|
||||
file_size,
|
||||
],
|
||||
storage=PrivateS3Storage,
|
||||
storage=PrivateS3Storage(),
|
||||
)
|
||||
issue = models.ForeignKey(
|
||||
"db.Issue", on_delete=models.CASCADE, related_name="issue_attachment"
|
||||
|
||||
Reference in New Issue
Block a user