This commit is contained in:
2
.vscode/launch.json
vendored
2
.vscode/launch.json
vendored
@@ -45,7 +45,7 @@
|
||||
//"AYANOVA_LOG_LEVEL": "Debug",
|
||||
"AYANOVA_DEFAULT_TRANSLATION": "en",
|
||||
//TRANSLATION MUST BE en for Integration TESTING
|
||||
"AYANOVA_PERMANENTLY_ERASE_DATABASE": "true",
|
||||
//"AYANOVA_PERMANENTLY_ERASE_DATABASE": "true",
|
||||
"AYANOVA_DB_CONNECTION": "Server=localhost;Username=postgres;Password=raven;Database=AyaNova;",
|
||||
"AYANOVA_USE_URLS": "http://*:7575;",
|
||||
"AYANOVA_FOLDER_USER_FILES": "c:\\temp\\RavenTestData\\userfiles",
|
||||
|
||||
@@ -63,14 +63,11 @@ namespace AyaNova.Api.Controllers
|
||||
if (serverState.IsClosed)
|
||||
return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason));
|
||||
System.Random rnd = new System.Random();
|
||||
int RandomNewCount = rnd.Next(20);
|
||||
|
||||
return Ok(ApiOkResponse.Response(RandomNewCount));
|
||||
}
|
||||
|
||||
//TODO: See new count case for gist of it
|
||||
//todo: see the core-notification.txt spec doc for details and
|
||||
//todo: see seemingly countless Notification related cases for details :)
|
||||
|
||||
|
||||
//------------
|
||||
|
||||
|
||||
|
||||
@@ -23,10 +23,13 @@ namespace AyaNova.Models
|
||||
[Required]
|
||||
public long SubscriptionId { get; set; }
|
||||
public string Message { get; set; }
|
||||
[Required]
|
||||
public bool Fetched {get;set;}
|
||||
|
||||
public Notification()
|
||||
{
|
||||
Created = DateTime.UtcNow;
|
||||
Fetched=false;
|
||||
}
|
||||
|
||||
}//eoc
|
||||
|
||||
@@ -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 = 12;
|
||||
|
||||
internal const long EXPECTED_COLUMN_COUNT = 378;
|
||||
internal const long EXPECTED_COLUMN_COUNT = 379;
|
||||
internal const long EXPECTED_INDEX_COUNT = 139;
|
||||
|
||||
//!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImporting WHEN NEW TABLES ADDED!!!!
|
||||
@@ -691,7 +691,7 @@ $BODY$;
|
||||
"ayatype integer, objectid bigint, eventtype integer not null, subscriptionid bigint not null, idvalue bigint, decvalue decimal(19,4), eventdate timestamp, message text)");
|
||||
|
||||
await ExecQueryAsync("CREATE TABLE anotification (id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, created timestamp not null, ayatype integer, objectid bigint, eventtype integer not null, " +
|
||||
"subscriptionid bigint not null, message text)");
|
||||
"subscriptionid bigint not null, message text, fetched bool not null)");
|
||||
|
||||
await ExecQueryAsync("CREATE TABLE anotifydeliverylog (id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, processed timestamp not null, ayatype integer, objectid bigint, " +
|
||||
"eventtype integer not null, subscriptionid bigint not null, idvalue bigint, decvalue decimal(19,4), userid bigint not null, " +
|
||||
|
||||
Reference in New Issue
Block a user