Step 1.
This commit is contained in:
parent
9e633d2d6d
commit
ab8a1e7324
@ -157,6 +157,7 @@ namespace Oqtane.Controllers
|
||||
notification.CreatedOn = DateTime.UtcNow;
|
||||
notification.IsDelivered = false;
|
||||
notification.DeliveredOn = null;
|
||||
notification.SendOn = DateTime.UtcNow;
|
||||
_notifications.AddNotification(notification);
|
||||
}
|
||||
|
||||
@ -385,6 +386,7 @@ namespace Oqtane.Controllers
|
||||
notification.CreatedOn = DateTime.UtcNow;
|
||||
notification.IsDelivered = false;
|
||||
notification.DeliveredOn = null;
|
||||
notification.SendOn = DateTime.UtcNow;
|
||||
_notifications.AddNotification(notification);
|
||||
_logger.Log(LogLevel.Information, this, LogFunction.Security, "Password Reset Notification Sent For {Username}", user.Username);
|
||||
}
|
||||
|
@ -22,10 +22,14 @@
|
||||
<Content Remove="wwwroot\Modules\Templates\**" />
|
||||
<EmbeddedResource Remove="wwwroot\Modules\Templates\**" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Remove="Scripts\Notification.01.00.01.00.sql" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="Scripts\Master.00.00.00.00.sql" />
|
||||
<EmbeddedResource Include="Scripts\Master.00.09.00.00.sql" />
|
||||
<EmbeddedResource Include="Scripts\Master.01.00.01.00.sql" />
|
||||
<EmbeddedResource Include="Scripts\Notification.01.00.01.00.sql" />
|
||||
<EmbeddedResource Include="Scripts\Tenant.00.00.00.00.sql" />
|
||||
<EmbeddedResource Include="Scripts\Tenant.00.09.00.00.sql" />
|
||||
<EmbeddedResource Include="Scripts\Tenant.00.09.01.00.sql" />
|
||||
|
9
Oqtane.Server/Scripts/Notification.01.00.01.00.sql
Normal file
9
Oqtane.Server/Scripts/Notification.01.00.01.00.sql
Normal file
@ -0,0 +1,9 @@
|
||||
/*
|
||||
|
||||
Version 1.0.1 Notification migration script
|
||||
|
||||
*/
|
||||
|
||||
ALTER TABLE [dbo].[Notification] ADD
|
||||
[SendOn] [datetime] NULL
|
||||
GO
|
@ -22,6 +22,7 @@ namespace Oqtane.Models
|
||||
public string DeletedBy { get; set; }
|
||||
public DateTime? DeletedOn { get; set; }
|
||||
public bool IsDeleted { get; set; }
|
||||
public DateTime? SendOn { get; set; }
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user