Remove extraneous comments/code from migrations
This commit is contained in:
parent
24759b9060
commit
0fe05fb3a9
|
@ -1,8 +1,5 @@
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Data;
|
using System.Data;
|
||||||
using System.Text.Json;
|
|
||||||
using System.Text.Json.Serialization;
|
|
||||||
using Dapper;
|
using Dapper;
|
||||||
using FluentMigrator;
|
using FluentMigrator;
|
||||||
using NzbDrone.Core.Datastore.Migration.Framework;
|
using NzbDrone.Core.Datastore.Migration.Framework;
|
||||||
|
@ -21,7 +18,6 @@ namespace NzbDrone.Core.Datastore.Migration
|
||||||
private void UpdateLanguageTags(IDbConnection conn, IDbTransaction tran)
|
private void UpdateLanguageTags(IDbConnection conn, IDbTransaction tran)
|
||||||
{
|
{
|
||||||
var updatedLanguageTags = new List<object>();
|
var updatedLanguageTags = new List<object>();
|
||||||
var now = DateTime.Now;
|
|
||||||
|
|
||||||
using (var cmd = conn.CreateCommand())
|
using (var cmd = conn.CreateCommand())
|
||||||
{
|
{
|
||||||
|
@ -43,16 +39,6 @@ namespace NzbDrone.Core.Datastore.Migration
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var serializerSettings = new JsonSerializerOptions
|
|
||||||
{
|
|
||||||
AllowTrailingCommas = true,
|
|
||||||
DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull,
|
|
||||||
PropertyNameCaseInsensitive = true,
|
|
||||||
DictionaryKeyPolicy = JsonNamingPolicy.CamelCase,
|
|
||||||
PropertyNamingPolicy = JsonNamingPolicy.CamelCase,
|
|
||||||
WriteIndented = true
|
|
||||||
};
|
|
||||||
|
|
||||||
var updateSubtitleFilesSql = "UPDATE \"SubtitleFiles\" SET \"LanguageTags\" = @LanguageTags, \"LastUpdated\" = CURRENT_TIMESTAMP WHERE \"Id\" = @Id";
|
var updateSubtitleFilesSql = "UPDATE \"SubtitleFiles\" SET \"LanguageTags\" = @LanguageTags, \"LastUpdated\" = CURRENT_TIMESTAMP WHERE \"Id\" = @Id";
|
||||||
conn.Execute(updateSubtitleFilesSql, updatedLanguageTags, transaction: tran);
|
conn.Execute(updateSubtitleFilesSql, updatedLanguageTags, transaction: tran);
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,8 +9,6 @@ namespace NzbDrone.Core.Datastore.Migration
|
||||||
protected override void MainDbUpgrade()
|
protected override void MainDbUpgrade()
|
||||||
{
|
{
|
||||||
Alter.Table("Series").AddColumn("LastAired").AsDateTimeOffset().Nullable();
|
Alter.Table("Series").AddColumn("LastAired").AsDateTimeOffset().Nullable();
|
||||||
|
|
||||||
// Execute.Sql("UPDATE Series SET LastAired = ");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue