fix: storage retention setting
- feat: add storage retention to local storage as well - fix: UI input for max storage now allows exact decimals so MB input is now also possible - fix: Database column is now decimal instead of integer - fix: variable naming of storage check no longer overwrites $backup - renamed it to $backupExecution
This commit is contained in:
@@ -12,10 +12,11 @@ return new class extends Migration
|
||||
$table->renameColumn('number_of_backups_locally', 'database_backup_retention_amount_locally');
|
||||
$table->integer('database_backup_retention_amount_locally')->default(0)->nullable(false)->change();
|
||||
$table->integer('database_backup_retention_days_locally')->default(0)->nullable(false);
|
||||
$table->decimal('database_backup_retention_max_storage_locally', 17, 7)->default(0)->nullable(false);
|
||||
|
||||
$table->integer('database_backup_retention_amount_s3')->default(0)->nullable(false);
|
||||
$table->integer('database_backup_retention_days_s3')->default(0)->nullable(false);
|
||||
$table->integer('database_backup_retention_max_storage_s3')->default(0)->nullable(false);
|
||||
$table->decimal('database_backup_retention_max_storage_s3', 17, 7)->default(0)->nullable(false);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -25,6 +26,7 @@ return new class extends Migration
|
||||
$table->renameColumn('database_backup_retention_amount_locally', 'number_of_backups_locally')->nullable(true)->change();
|
||||
$table->dropColumn([
|
||||
'database_backup_retention_days_locally',
|
||||
'database_backup_retention_max_storage_locally',
|
||||
'database_backup_retention_amount_s3',
|
||||
'database_backup_retention_days_s3',
|
||||
'database_backup_retention_max_storage_s3',
|
||||
|
||||
Reference in New Issue
Block a user