mirror of
https://github.com/bitwarden/server.git
synced 2025-07-03 00:52:49 -05:00
Trying
This commit is contained in:
@ -40,25 +40,26 @@ public class RerunableSqlTableJournal : SqlTableJournal
|
|||||||
appliedParam.Value = DateTime.Now;
|
appliedParam.Value = DateTime.Now;
|
||||||
command.Parameters.Add(appliedParam);
|
command.Parameters.Add(appliedParam);
|
||||||
|
|
||||||
var rerunableParam = command.CreateParameter();
|
// var rerunableParam = command.CreateParameter();
|
||||||
rerunableParam.ParameterName = "rerunable";
|
// rerunableParam.ParameterName = "rerunable";
|
||||||
rerunableParam.Value = Rerunable;
|
// rerunableParam.Value = Rerunable;
|
||||||
command.Parameters.Add(rerunableParam);
|
// command.Parameters.Add(rerunableParam);
|
||||||
|
|
||||||
command.CommandText = GetInsertJournalEntrySql("@scriptName", "@applied", "@rerrunable");
|
command.CommandText = GetInsertJournalEntrySql("@scriptName", "@applied");
|
||||||
|
// command.CommandText = GetInsertJournalEntrySql("@scriptName", "@applied", "@rerrunable");
|
||||||
command.CommandType = CommandType.Text;
|
command.CommandType = CommandType.Text;
|
||||||
return command;
|
return command;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected string GetInsertJournalEntrySql(string @scriptName, string @applied, string @rerrunable)
|
// protected string GetInsertJournalEntrySql(string @scriptName, string @applied, string @rerrunable)
|
||||||
{
|
// {
|
||||||
return $"insert into {FqSchemaTableName} (ScriptName, Applied, Rerunable) values ({@scriptName}, {@applied}, {@rerrunable})";
|
// return $"insert into {FqSchemaTableName} (ScriptName, Applied, Rerunable) values ({@scriptName}, {@applied}, {@rerrunable})";
|
||||||
}
|
// }
|
||||||
|
|
||||||
protected override string GetJournalEntriesSql()
|
// protected override string GetJournalEntriesSql()
|
||||||
{
|
// {
|
||||||
return $"select [ScriptName] from {FqSchemaTableName} where [Rerunable] = 0 order by [ScriptName]";
|
// return $"select [ScriptName] from {FqSchemaTableName} where [Rerunable] = 0 order by [ScriptName]";
|
||||||
}
|
// }
|
||||||
|
|
||||||
protected override string CreateSchemaTableSql(string quotedPrimaryKeyName)
|
protected override string CreateSchemaTableSql(string quotedPrimaryKeyName)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user