Skip to content

Commit

Permalink
Fixed SQL error
Browse files Browse the repository at this point in the history
  • Loading branch information
maxirmx committed Sep 6, 2024
1 parent cf92173 commit 3258297
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dkgServiceNode/Data/DbEnsure.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ FOR EACH ROW
COMMIT;
";

readonly static string sqlScript_0_12_0 = @"
readonly static string sqlScript_0_12_1 = @"
START TRANSACTION;
DROP TRIGGER IF EXISTS nodes_before_update_trigger ON nodes;
Expand All @@ -145,7 +145,7 @@ CREATE OR REPLACE PROCEDURE upsert_node_round_history(
p_node_id INT,
p_round_id INT,
p_node_final_status SMALLINT,
p_node_random VARCHAR
p_node_random INT
)
LANGUAGE plpgsql
AS $$
Expand All @@ -170,7 +170,7 @@ INSERT INTO nodes_round_history(node_id, round_id, node_final_status, node_rando
$$;
INSERT INTO ""versions"" (""version"", ""date"") VALUES
('0.12.0', '" + DateTime.Now.ToString("yyyy-MM-dd") + @"');
('0.12.1', '" + DateTime.Now.ToString("yyyy-MM-dd") + @"');
COMMIT;
";
Expand Down Expand Up @@ -260,7 +260,7 @@ public static void Ensure(string connectionString)
PuVersionUpdate("0.9.6", connection);
PuVersionUpdate("0.10.2", connection);
PuVersionUpdate("0.11.0", connection);
EnsureVersion("0.12.0", sqlScript_0_12_0, connection);
EnsureVersion("0.12.1", sqlScript_0_12_1, connection);
}
}

Expand Down

0 comments on commit 3258297

Please sign in to comment.