forked from ddrilling/AsbCloudServer
add manual sql - hypertable
This commit is contained in:
parent
e4412d3b2a
commit
9da19b2464
@ -74,6 +74,10 @@ namespace AsbCloudDb.Migrations
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
},
|
||||
comment: "таблица данных ГТИ с типом значения string");
|
||||
migrationBuilder.Sql
|
||||
("SELECT create_hypertable('t_wits_string','time','id_telemetry',chunk_time_interval => INTERVAL '5 day'); " +
|
||||
"SELECT create_hypertable('t_wits_float','time','id_telemetry',chunk_time_interval => INTERVAL '5 day'); " +
|
||||
"SELECT create_hypertable('t_wits_int','time','id_telemetry',chunk_time_interval => INTERVAL '5 day'); ");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
|
Loading…
Reference in New Issue
Block a user