mirror of https://github.com/abpframework/eventhub
3 changed files with 3490 additions and 1 deletions
File diff suppressed because it is too large
@ -0,0 +1,70 @@ |
|||||
|
using System; |
||||
|
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
|
||||
|
#nullable disable |
||||
|
|
||||
|
namespace EventHub.Migrations |
||||
|
{ |
||||
|
/// <inheritdoc />
|
||||
|
public partial class Upgrade_Abp_Version_9_3_3 : Migration |
||||
|
{ |
||||
|
/// <inheritdoc />
|
||||
|
protected override void Up(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.AddColumn<DateTime>( |
||||
|
name: "CreationTime", |
||||
|
table: "AbpRoles", |
||||
|
type: "timestamp without time zone", |
||||
|
nullable: false, |
||||
|
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); |
||||
|
|
||||
|
migrationBuilder.AddColumn<DateTime>( |
||||
|
name: "CreationTime", |
||||
|
table: "AbpClaimTypes", |
||||
|
type: "timestamp without time zone", |
||||
|
nullable: false, |
||||
|
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "ApplicationName", |
||||
|
table: "AbpBackgroundJobs", |
||||
|
type: "character varying(96)", |
||||
|
maxLength: 96, |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.CreateTable( |
||||
|
name: "AbpAuditLogExcelFiles", |
||||
|
columns: table => new |
||||
|
{ |
||||
|
Id = table.Column<Guid>(type: "uuid", nullable: false), |
||||
|
TenantId = table.Column<Guid>(type: "uuid", nullable: true), |
||||
|
FileName = table.Column<string>(type: "character varying(256)", maxLength: 256, nullable: true), |
||||
|
CreationTime = table.Column<DateTime>(type: "timestamp without time zone", nullable: false), |
||||
|
CreatorId = table.Column<Guid>(type: "uuid", nullable: true) |
||||
|
}, |
||||
|
constraints: table => |
||||
|
{ |
||||
|
table.PrimaryKey("PK_AbpAuditLogExcelFiles", x => x.Id); |
||||
|
}); |
||||
|
} |
||||
|
|
||||
|
/// <inheritdoc />
|
||||
|
protected override void Down(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.DropTable( |
||||
|
name: "AbpAuditLogExcelFiles"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "CreationTime", |
||||
|
table: "AbpRoles"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "CreationTime", |
||||
|
table: "AbpClaimTypes"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "ApplicationName", |
||||
|
table: "AbpBackgroundJobs"); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue