mirror of
https://github.com/WowUp/WowUp.git
synced 2026-04-23 15:27:03 -04:00
29 lines
612 B
C#
29 lines
612 B
C#
using SQLite;
|
|
using WowUp.WPF.Migrations.Contracts;
|
|
|
|
namespace WowUp.WPF.Migrations
|
|
{
|
|
public class Version1Migration : IMigration
|
|
{
|
|
public int TargetSchemaVersion => 1;
|
|
|
|
public void Execute(SQLiteConnection connection)
|
|
{
|
|
try
|
|
{
|
|
connection.BeginTransaction();
|
|
|
|
connection.Execute("UPDATE Addons SET ChannelType = 0 WHERE ChannelType is NULL");
|
|
|
|
connection.Commit();
|
|
}
|
|
catch
|
|
{
|
|
connection.Rollback();
|
|
|
|
throw;
|
|
}
|
|
}
|
|
}
|
|
}
|