调课
This commit is contained in:
+4867
File diff suppressed because it is too large
Load Diff
+88
@@ -0,0 +1,88 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Jiaowu.Api.Infrastructure.Persistence.Migrations.MySql
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class CourseAdjustmentOccurrences : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "SourceClassroomId",
|
||||
table: "CourseAdjustments",
|
||||
type: "char(36)",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<DateTime>(
|
||||
name: "SourceDate",
|
||||
table: "CourseAdjustments",
|
||||
type: "date",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "SourcePeriodCount",
|
||||
table: "CourseAdjustments",
|
||||
type: "int",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "SourceScheduleEntryId",
|
||||
table: "CourseAdjustments",
|
||||
type: "char(36)",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "SourceStartPeriod",
|
||||
table: "CourseAdjustments",
|
||||
type: "int",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "SourceWeek",
|
||||
table: "CourseAdjustments",
|
||||
type: "int",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_CourseAdjustments_SourceScheduleEntryId_SourceWeek",
|
||||
table: "CourseAdjustments",
|
||||
columns: new[] { "SourceScheduleEntryId", "SourceWeek" });
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_CourseAdjustments_SourceScheduleEntryId_SourceWeek",
|
||||
table: "CourseAdjustments");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "SourceClassroomId",
|
||||
table: "CourseAdjustments");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "SourceDate",
|
||||
table: "CourseAdjustments");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "SourcePeriodCount",
|
||||
table: "CourseAdjustments");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "SourceScheduleEntryId",
|
||||
table: "CourseAdjustments");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "SourceStartPeriod",
|
||||
table: "CourseAdjustments");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "SourceWeek",
|
||||
table: "CourseAdjustments");
|
||||
}
|
||||
}
|
||||
}
|
||||
+22
-2
@@ -714,6 +714,24 @@ namespace Jiaowu.Api.Infrastructure.Persistence.Migrations.MySql
|
||||
b.Property<Guid?>("ReviewedByUserId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<Guid?>("SourceClassroomId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<DateTime?>("SourceDate")
|
||||
.HasColumnType("date");
|
||||
|
||||
b.Property<int?>("SourcePeriodCount")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<Guid?>("SourceScheduleEntryId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<int?>("SourceStartPeriod")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int?>("SourceWeek")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int?>("StartPeriod")
|
||||
.HasColumnType("int");
|
||||
|
||||
@@ -746,6 +764,8 @@ namespace Jiaowu.Api.Infrastructure.Persistence.Migrations.MySql
|
||||
|
||||
b.HasIndex("SubstituteTeacherId");
|
||||
|
||||
b.HasIndex("SourceScheduleEntryId", "SourceWeek");
|
||||
|
||||
b.HasIndex("Status", "CreatedAt");
|
||||
|
||||
b.HasIndex("TeachingTaskId", "Status");
|
||||
@@ -3473,10 +3493,10 @@ namespace Jiaowu.Api.Infrastructure.Persistence.Migrations.MySql
|
||||
b.HasIndex("JobKind", "JobId")
|
||||
.IsUnique();
|
||||
|
||||
b.HasIndex("State", "CreatedAt");
|
||||
|
||||
b.HasIndex("State", "CompletedAt");
|
||||
|
||||
b.HasIndex("State", "CreatedAt");
|
||||
|
||||
b.ToTable("BackgroundJobOutboxMessages");
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user