This commit is contained in:
@@ -22,7 +22,7 @@ namespace AyaNova.Util
|
||||
//!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImporting WHEN NEW TABLES ADDED!!!!
|
||||
private const int DESIRED_SCHEMA_LEVEL = 11;
|
||||
|
||||
internal const long EXPECTED_COLUMN_COUNT = 326;
|
||||
internal const long EXPECTED_COLUMN_COUNT = 327;
|
||||
internal const long EXPECTED_INDEX_COUNT = 134;
|
||||
|
||||
//!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImporting WHEN NEW TABLES ADDED!!!!
|
||||
@@ -391,7 +391,7 @@ $BODY$;
|
||||
|
||||
await ExecQueryAsync("CREATE TABLE afileattachment (id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, " +
|
||||
"attachtoobjectid bigint not null, attachtoobjecttype integer not null, " +
|
||||
"storedfilename text not null, displayfilename text not null, contenttype text, lastmodified timestamp not null, notes text, exists bool not null)");
|
||||
"storedfilename text not null, displayfilename text not null, contenttype text, lastmodified timestamp not null, notes text, exists bool not null, size bigint not null)");
|
||||
|
||||
//index required for ops that need to check if file already in db (delete, count refs etc)
|
||||
//LOOKAT: isn't this useless without the ID as well or is that not fetched?
|
||||
|
||||
@@ -356,6 +356,7 @@ namespace AyaNova.Util
|
||||
EnsurePath(permanentPath);
|
||||
|
||||
var permanentFilePath = Path.Combine(permanentPath, hash);
|
||||
var FileSize = new FileInfo(tempFilePath).Length;
|
||||
|
||||
//See if the file was already uploaded, if so then ignore it for now
|
||||
if (File.Exists(permanentFilePath))
|
||||
@@ -380,7 +381,8 @@ namespace AyaNova.Util
|
||||
ContentType = contentType,
|
||||
AttachToObjectId = attachToObject.ObjectId,
|
||||
AttachToObjectType = attachToObject.ObjectType,
|
||||
LastModified = lastModified
|
||||
LastModified = lastModified,
|
||||
Size = FileSize
|
||||
|
||||
};
|
||||
|
||||
@@ -631,7 +633,7 @@ namespace AyaNova.Util
|
||||
/// Utility / backup folder file size info
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
internal static FolderSizeInfo GetUtilityFolderSizeInfo()
|
||||
internal static FolderSizeInfo GetBackupFolderSizeInfo()
|
||||
{
|
||||
return GetDirectorySize(new DirectoryInfo(BackupFilesFolder));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user