-
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge commit 'f7ccf4d6c3f289fea5ec90e87f56731741aea6bf' into release
- Loading branch information
Showing
26 changed files
with
679 additions
and
256 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
docker-app/qfieldcloud/core/migrations/0060_alter_project_storage_size_mb.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Generated by Django 3.2.17 on 2023-02-10 00:14 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("core", "0059_auto_20221028_1806"), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameField( | ||
model_name="project", | ||
old_name="storage_size_mb", | ||
new_name="file_storage_bytes", | ||
), | ||
migrations.RunSQL( | ||
""" | ||
UPDATE core_project | ||
SET | ||
file_storage_bytes = file_storage_bytes * 1000 * 1000 | ||
""", | ||
""" | ||
UPDATE core_project | ||
SET | ||
file_storage_bytes = file_storage_bytes / 1000 / 1000 | ||
""", | ||
), | ||
migrations.AlterField( | ||
model_name="project", | ||
name="file_storage_bytes", | ||
field=models.PositiveBigIntegerField(default=0), | ||
), | ||
] |
Oops, something went wrong.