Is this something that can be added to your roadmap @ismcagdas?
Hello @ismcagdas,
Please ignore. Azure team was able to rectify the issue. Apologies for bothering you on this.
Thank you.
I am also facing the same problem and can't proceed forward. Although I was able to get past the 1st issue, the 2nd issue is showstopper for me. Any guidance is greatly appreciated. Thank you.
Thank you @maliming
Thank you @maliming. Is this something that automatically sets the expiration of the audit logs or is there a configuration that we need to set to tell the system when the logs get expired? How long is the default age when the logs get deleted?
Understood. Thank you @ismcagdas
Thanks for the suggestion @maliming
Hello @malimig,
I tried to implement the one in the related discussions but I also wanted to see if it is achievable via migration so I can also use the Migrator tool and have a single codebase. Anyway here is the migration file content as requested.
using Microsoft.EntityFrameworkCore.Migrations;
namespace LogDesk.Migrations
{
public partial class Seed_Countries_Entity : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.Sql("INSERT INTO [dbo].[Countries] ([Code], [Description], [IsEuro], [CurrencyCode], [CurrencyDescription], [CurrencySymbol], [Inactive], [CreationTime], [IsDeleted]) VALUES ('GB', 'United Kingdom', 0, 'GBP', 'United Kingdom Pounds', '£', 0, GETDATE(), 0)");
migrationBuilder.Sql("INSERT INTO [dbo].[Countries] ([Code], [Description], [IsEuro], [CurrencyCode], [CurrencyDescription], [CurrencySymbol], [Inactive], [CreationTime], [IsDeleted]) VALUES ('US', 'United States of America', 0, 'USD', 'United States Dollars', '$', 0, GETDATE(), 0)");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.Sql("DELETE FROM [dbo].[Countries]");
}
}
}
Notice that I am not assigning a TenantId
value to the SQL statement since I don't know how to get it when applying the migration across the tenants.
Thank you @ismcagdas.