forked from ddrilling/AsbCloudServer
добавление миграции - очистка таблицы t_daily_report
This commit is contained in:
parent
4bf4a93b6b
commit
73f804d3d6
6072
AsbCloudDb/Migrations/20220705090646_Remove_DailyReportData.Designer.cs
generated
Normal file
6072
AsbCloudDb/Migrations/20220705090646_Remove_DailyReportData.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,19 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace AsbCloudDb.Migrations
|
||||
{
|
||||
public partial class Remove_DailyReportData : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.Sql("DELETE FROM [t_daily_report]", true);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
@ -137,7 +137,7 @@ namespace AsbCloudDb.Migrations
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("AsbCloudDb.Model.DailyReport", b =>
|
||||
modelBuilder.Entity("AsbCloudDb.Model.DailyReportDB.DailyReport", b =>
|
||||
{
|
||||
b.Property<int>("IdWell")
|
||||
.HasColumnType("integer")
|
||||
@ -5397,7 +5397,7 @@ namespace AsbCloudDb.Migrations
|
||||
b.Navigation("CompanyType");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("AsbCloudDb.Model.DailyReport", b =>
|
||||
modelBuilder.Entity("AsbCloudDb.Model.DailyReportDB.DailyReport", b =>
|
||||
{
|
||||
b.HasOne("AsbCloudDb.Model.Well", "Well")
|
||||
.WithMany()
|
||||
|
Loading…
Reference in New Issue
Block a user