提交 bb97ad58 编写于 作者: 麦壳饼's avatar 麦壳饼

shanchu

上级 c982bef3
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace IoTSharp.Migrations
{
public partial class addflowdield : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<DateTime>(
name: "CreateDate",
table: "Flows",
type: "timestamp without time zone",
nullable: false,
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
migrationBuilder.AddColumn<Guid>(
name: "CreateId",
table: "Flows",
type: "uuid",
nullable: false,
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"));
migrationBuilder.AddColumn<Guid>(
name: "Createor",
table: "Flows",
type: "uuid",
nullable: false,
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"));
migrationBuilder.AddColumn<int>(
name: "FlowStatus",
table: "Flows",
type: "integer",
nullable: false,
defaultValue: 0);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "CreateDate",
table: "Flows");
migrationBuilder.DropColumn(
name: "CreateId",
table: "Flows");
migrationBuilder.DropColumn(
name: "Createor",
table: "Flows");
migrationBuilder.DropColumn(
name: "FlowStatus",
table: "Flows");
}
}
}
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace IoTSharp.Migrations
{
public partial class addtaskexecutor : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<Guid>(
name: "ParentRuleId",
table: "FlowRules",
type: "uuid",
nullable: false,
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"));
migrationBuilder.AddColumn<double>(
name: "SubVersion",
table: "FlowRules",
type: "double precision",
nullable: false,
defaultValue: 0.0);
migrationBuilder.AddColumn<string>(
name: "BizData",
table: "BaseEvents",
type: "text",
nullable: true);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "ParentRuleId",
table: "FlowRules");
migrationBuilder.DropColumn(
name: "SubVersion",
table: "FlowRules");
migrationBuilder.DropColumn(
name: "BizData",
table: "BaseEvents");
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册