1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-03 09:26:03 +00:00
webvirtcloud/vmbackups/migrations/0010_keep_weekly_monthly.py
catborise 2c0855cf64 feat(backups): a schedule also keeps weekly and monthly backups
Besides the newest N backups of each VM, a schedule keeps the newest backup
of each of the last N weeks and of the last N months that have one (panel
time zone); 0 keeps none. The schedules list shows them.
2026-11-19 22:28:44 +03:00

23 lines
580 B
Python

# Generated by Django 5.2.18 on 2026-11-19 18:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('vmbackups', '0009_backup_verify'),
]
operations = [
migrations.AddField(
model_name='backuppolicy',
name='keep_monthly',
field=models.PositiveSmallIntegerField(default=0),
),
migrations.AddField(
model_name='backuppolicy',
name='keep_weekly',
field=models.PositiveSmallIntegerField(default=0),
),
]