迁移更新
This commit is contained in:
parent
c8c8d1c45f
commit
05c2046aba
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,52 +0,0 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace JiShe.IoT.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class updateIoTThingModels : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "IoTPlatformRawFieldExtension",
|
||||
table: "ServiceProIoTPlatformThingModelInfo",
|
||||
type: "text",
|
||||
nullable: true,
|
||||
comment: "物联网平台中对应产品物模型标识符扩展,结构体或者数组的时候,是参数的名称与长度的键值对,其他类型就是长度或者值范围",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "text",
|
||||
oldNullable: true,
|
||||
oldComment: "物联网平台中对应产品物模型标识符扩展,用于扩展结构体类型");
|
||||
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "IsOperableIdentifier",
|
||||
table: "ServiceProIoTPlatformThingModelInfo",
|
||||
type: "boolean",
|
||||
nullable: false,
|
||||
defaultValue: false,
|
||||
comment: "是否可操作物模型标识符");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "IsOperableIdentifier",
|
||||
table: "ServiceProIoTPlatformThingModelInfo");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "IoTPlatformRawFieldExtension",
|
||||
table: "ServiceProIoTPlatformThingModelInfo",
|
||||
type: "text",
|
||||
nullable: true,
|
||||
comment: "物联网平台中对应产品物模型标识符扩展,用于扩展结构体类型",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "text",
|
||||
oldNullable: true,
|
||||
oldComment: "物联网平台中对应产品物模型标识符扩展,结构体或者数组的时候,是参数的名称与长度的键值对,其他类型就是长度或者值范围");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,30 +0,0 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace JiShe.IoT.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class updatethingmodel : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "AccessMode",
|
||||
table: "ServiceProIoTPlatformThingModelInfo",
|
||||
type: "text",
|
||||
nullable: false,
|
||||
defaultValue: "r",
|
||||
comment: "物模型标识符访问模式");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "AccessMode",
|
||||
table: "ServiceProIoTPlatformThingModelInfo");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,44 +0,0 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace JiShe.IoT.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class updatethingmodel2 : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "AccessMode",
|
||||
table: "ServiceProIoTPlatformThingModelInfo",
|
||||
type: "character varying(10)",
|
||||
maxLength: 10,
|
||||
nullable: false,
|
||||
defaultValue: "r",
|
||||
comment: "物模型标识符访问模式",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "text",
|
||||
oldDefaultValue: "r",
|
||||
oldComment: "物模型标识符访问模式");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "AccessMode",
|
||||
table: "ServiceProIoTPlatformThingModelInfo",
|
||||
type: "text",
|
||||
nullable: false,
|
||||
defaultValue: "r",
|
||||
comment: "物模型标识符访问模式",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "character varying(10)",
|
||||
oldMaxLength: 10,
|
||||
oldDefaultValue: "r",
|
||||
oldComment: "物模型标识符访问模式");
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user