数据推送

This commit is contained in:
ChenYi 2026-03-11 15:39:06 +08:00
parent 86de4c7e50
commit f83eccf1b9
3 changed files with 4383 additions and 1 deletions

View File

@ -0,0 +1,51 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace JiShe.IoT.Migrations
{
/// <inheritdoc />
public partial class alterOneNETProductInfos20260311 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "DataPushInfo",
table: "ServiceProOneNETProductInfo",
type: "text",
nullable: true,
comment: "数据推送信息,HTTP推送就是推送路径Redis推送主题或者key",
oldClrType: typeof(string),
oldType: "text",
oldNullable: true,
oldComment: "数据推送信息,HTTP推送就是推送地址Reist推送主题或者key");
migrationBuilder.AddColumn<string>(
name: "DataPushServer",
table: "ServiceProOneNETProductInfo",
type: "text",
nullable: true,
comment: "数据推送服务地址信息例如HTTP地址http://192.168.1.1:8080Redis订阅地址192.168.1.1:6379");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "DataPushServer",
table: "ServiceProOneNETProductInfo");
migrationBuilder.AlterColumn<string>(
name: "DataPushInfo",
table: "ServiceProOneNETProductInfo",
type: "text",
nullable: true,
comment: "数据推送信息,HTTP推送就是推送地址Reist推送主题或者key",
oldClrType: typeof(string),
oldType: "text",
oldNullable: true,
oldComment: "数据推送信息,HTTP推送就是推送路径Redis推送主题或者key");
}
}
}

View File

@ -2427,7 +2427,11 @@ namespace JiShe.IoT.Migrations
b.Property<string>("DataPushInfo")
.HasColumnType("text")
.HasComment("数据推送信息,HTTP推送就是推送地址Reist推送主题或者key");
.HasComment("数据推送信息,HTTP推送就是推送路径Redis推送主题或者key");
b.Property<string>("DataPushServer")
.HasColumnType("text")
.HasComment("数据推送服务地址信息例如HTTP地址http://192.168.1.1:8080Redis订阅地址192.168.1.1:6379");
b.Property<int?>("DataPushType")
.HasColumnType("integer")