Don't compile EF Core designer files on release builds (#38927)
This commit is contained in:
committed by
GitHub
parent
8b3232f305
commit
27dc59a40b
@@ -17,6 +17,7 @@ namespace Content.Server.Database.Migrations.Postgres
|
||||
[Migration("20230319110655_ProfileTraitIndexUnique")]
|
||||
partial class ProfileTraitIndexUnique
|
||||
{
|
||||
#if EF_DESIGNER
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
@@ -1329,5 +1330,6 @@ namespace Content.Server.Database.Migrations.Postgres
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user