解析脚本测试
This commit is contained in:
parent
b160064154
commit
f9ce67e98f
3840
src/JiShe.IoT.EntityFrameworkCore/Migrations/20251212073952_update20251212.Designer.cs
generated
Normal file
3840
src/JiShe.IoT.EntityFrameworkCore/Migrations/20251212073952_update20251212.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,42 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace JiShe.IoT.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class update20251212 : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "IoTPlatformRawFieldExtension",
|
||||
table: "ServiceProIoTPlatformThingModelInfo",
|
||||
type: "text",
|
||||
nullable: false,
|
||||
comment: "物联网平台中对应产品物模型标识符扩展,用于扩展结构体类型")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<sbyte>(
|
||||
name: "IsSpecialIdentifier",
|
||||
table: "ServiceProIoTPlatformThingModelInfo",
|
||||
type: "tinyint(1)",
|
||||
nullable: false,
|
||||
defaultValue: (sbyte)0,
|
||||
comment: "是否是特殊物模型标识符");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "IoTPlatformRawFieldExtension",
|
||||
table: "ServiceProIoTPlatformThingModelInfo");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "IsSpecialIdentifier",
|
||||
table: "ServiceProIoTPlatformThingModelInfo");
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1154,6 +1154,11 @@ namespace JiShe.IoT.Migrations
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasComment("物联网平台中对应的产品Id");
|
||||
|
||||
b.Property<string>("IoTPlatformRawFieldExtension")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
.HasComment("物联网平台中对应产品物模型标识符扩展,用于扩展结构体类型");
|
||||
|
||||
b.Property<string>("IoTPlatformRawFieldName")
|
||||
.IsRequired()
|
||||
.HasMaxLength(64)
|
||||
@ -1166,6 +1171,10 @@ namespace JiShe.IoT.Migrations
|
||||
.HasDefaultValue(false)
|
||||
.HasColumnName("IsDeleted");
|
||||
|
||||
b.Property<sbyte>("IsSpecialIdentifier")
|
||||
.HasColumnType("tinyint(1)")
|
||||
.HasComment("是否是特殊物模型标识符");
|
||||
|
||||
b.Property<sbyte>("IsValueNeedConvert")
|
||||
.HasColumnType("tinyint(1)")
|
||||
.HasComment("是否需要值类型转换");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user