fix cleanup_timeseries_by_ttl procedure
This commit is contained in:
parent
f647c69f50
commit
f510b142a7
@ -59,8 +59,8 @@ $$
|
||||
DECLARE
|
||||
tenant_cursor CURSOR FOR select tenant.id as tenant_id
|
||||
from tenant;
|
||||
tenant_id_record varchar;
|
||||
customer_id_record varchar;
|
||||
tenant_id_record uuid;
|
||||
customer_id_record uuid;
|
||||
tenant_ttl bigint;
|
||||
customer_ttl bigint;
|
||||
deleted_for_entities bigint;
|
||||
|
||||
@ -197,6 +197,8 @@ public class PsqlTsDatabaseUpgradeService extends AbstractSqlTsDatabaseUpgradeSe
|
||||
break;
|
||||
case "3.1.1":
|
||||
try (Connection conn = DriverManager.getConnection(dbUrl, dbUserName, dbPassword)) {
|
||||
log.info("Load TTL functions ...");
|
||||
loadSql(conn, LOAD_TTL_FUNCTIONS_SQL);
|
||||
log.info("Load Drop Partitions functions ...");
|
||||
loadSql(conn, LOAD_DROP_PARTITIONS_FUNCTIONS_SQL);
|
||||
}
|
||||
|
||||
@ -188,8 +188,8 @@ $$
|
||||
DECLARE
|
||||
tenant_cursor CURSOR FOR select tenant.id as tenant_id
|
||||
from tenant;
|
||||
tenant_id_record varchar;
|
||||
customer_id_record varchar;
|
||||
tenant_id_record uuid;
|
||||
customer_id_record uuid;
|
||||
tenant_ttl bigint;
|
||||
customer_ttl bigint;
|
||||
deleted_for_entities bigint;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user