This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
namespace AyaNova.Models
|
||||
{
|
||||
|
||||
@@ -7,17 +6,18 @@ namespace AyaNova.Models
|
||||
{
|
||||
public long Id { get; set; }//this is always 1 as there is only ever one single global Ops object
|
||||
public uint Concurrency { get; set; }
|
||||
|
||||
public bool Active { get; set; }
|
||||
public DateTime BackupTime { get; set; }
|
||||
public int BackupSetsToKeep { get; set; }
|
||||
public bool BackupAttachments { get; set; }
|
||||
|
||||
|
||||
public GlobalOpsBackupSettings()
|
||||
{
|
||||
Id = 1;//always 1
|
||||
BackupTime = new DateTime(2020, 5, 19, 23, 59, 0, DateTimeKind.Local).ToUniversalTime();//date doesn't matter it only uses hour
|
||||
// BackupTime = DateTime.UtcNow.AddMinutes(-10);//for testing, above is regular
|
||||
DateTime utcNow = DateTime.UtcNow;
|
||||
Id = 1;
|
||||
BackupTime = new DateTime(utcNow.Year, utcNow.Month, utcNow.Day, 23, 59, 0, DateTimeKind.Local).ToUniversalTime();
|
||||
BackupSetsToKeep = 3;
|
||||
Active = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user