using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace RemoteServer.Migrations { /// public partial class InitialCreate : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "SyncGitCommits", columns: table => new { Id = table.Column(type: "TEXT", nullable: false), HeadId = table.Column(type: "TEXT", nullable: false), CommitId = table.Column(type: "TEXT", nullable: false), CommitUserName = table.Column(type: "TEXT", nullable: false), CommitTime = table.Column(type: "TEXT", nullable: false), CommitMessage = table.Column(type: "TEXT", nullable: false) }, constraints: table => { table.PrimaryKey("PK_SyncGitCommits", x => x.Id); }); migrationBuilder.CreateTable( name: "SyncLogFiles", columns: table => new { Id = table.Column(type: "TEXT", nullable: false), HeadId = table.Column(type: "TEXT", nullable: false), ClientRootPath = table.Column(type: "TEXT", maxLength: 500, nullable: false), ServerRootPath = table.Column(type: "TEXT", maxLength: 500, nullable: false), RelativePath = table.Column(type: "TEXT", maxLength: 500, nullable: false) }, constraints: table => { table.PrimaryKey("PK_SyncLogFiles", x => x.Id); }); migrationBuilder.CreateTable( name: "SyncLogHeads", columns: table => new { Id = table.Column(type: "TEXT", nullable: false), VersionsFromTag = table.Column(type: "TEXT", maxLength: 50, nullable: false), SyncTime = table.Column(type: "TEXT", nullable: false), ClientID = table.Column(type: "TEXT", maxLength: 200, nullable: false), ClientName = table.Column(type: "TEXT", maxLength: 50, nullable: true), Status = table.Column(type: "INTEGER", nullable: false), Message = table.Column(type: "TEXT", nullable: true) }, constraints: table => { table.PrimaryKey("PK_SyncLogHeads", x => x.Id); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "SyncGitCommits"); migrationBuilder.DropTable( name: "SyncLogFiles"); migrationBuilder.DropTable( name: "SyncLogHeads"); } } }