Compare commits

...

2 Commits

Author SHA1 Message Date
kham c9228950d5 add check db is not there create db not there same as table 2026-05-16 23:22:42 +10:00
kham 2e7f9e7a27 add menu on left 2026-05-16 19:16:47 +10:00
3 changed files with 13 additions and 4 deletions
+10 -1
View File
@@ -123,7 +123,16 @@ using (var scope = app.Services.CreateScope())
//if (!databaseCreator.Exists())
try
{
databaseCreator.CreateTables();
// Check if database exists
if (!databaseCreator.Exists())
{
databaseCreator.Create();
}
if (!databaseCreator.HasTables())
{
databaseCreator.CreateTables();
}
}
catch
{
+2 -2
View File
@@ -2,8 +2,8 @@
"AppSettings": {
"Secret": "Super Secret SIGN AND VERIFY JWT TOKENS, BEARER TOKEN USE WHEN CALLING THIS API.",
"SQLConnectionString_i": "host=localhost;port=5432;database=FamilyTreeDB;username=postgres;password=Positive~1;",
"SQLConnectionString": "host=192.168.1.240;port=5432;database=FamilyTreeDB;username=postgres;password=Positive~1;",
"SQLConnectionString_i": "host=localhost;port=5432;database=FamilyTreeDB_prod;username=postgres;password=Positive~1;",
"SQLConnectionString": "host=192.168.1.240;port=5432;database=FamilyTreeDB_prod;username=postgres;password=Positive~1;",
"ImageFolder": "c:\\temp\\Family",
"ImportFolder": "c:\\temp"
+1 -1
View File
@@ -8,7 +8,7 @@
<div class="flex-column">
<label class=" flex justify-end items-end mr-1 mb-2 myname">{{loginUser}}</label>
<div>
<span class="md:hidden flex justify-end"> <!--hidden on md screen show on small-->
<span class="md:hidden flex justify-start"> <!--hidden on md screen show on small-->
<button type="button" pButton icon="pi pi-align-justify" (click)="onemenu.toggle($event);"></button>
<p-menu #onemenu [popup]="true" [model]="oneMenu"></p-menu>
</span>