27 lines
1.0 KiB
C#
27 lines
1.0 KiB
C#
namespace Hermes.Migrations
|
|
{
|
|
using System;
|
|
using System.Data.Entity.Migrations;
|
|
|
|
public partial class V3 : DbMigration
|
|
{
|
|
public override void Up()
|
|
{
|
|
AddColumn("dbo.Preferences", "ovhSmsServiceName", c => c.String(maxLength: 4000));
|
|
AddColumn("dbo.Preferences", "ovhSmsApplicationName", c => c.String(maxLength: 4000));
|
|
AddColumn("dbo.Preferences", "ovhSmsApplicationKey", c => c.String(maxLength: 4000));
|
|
AddColumn("dbo.Preferences", "ovhSmsConsumerKey", c => c.String(maxLength: 4000));
|
|
DropColumn("dbo.Preferences", "SmsApiKey");
|
|
}
|
|
|
|
public override void Down()
|
|
{
|
|
AddColumn("dbo.Preferences", "SmsApiKey", c => c.String(maxLength: 4000));
|
|
DropColumn("dbo.Preferences", "ovhSmsConsumerKey");
|
|
DropColumn("dbo.Preferences", "ovhSmsApplicationKey");
|
|
DropColumn("dbo.Preferences", "ovhSmsApplicationName");
|
|
DropColumn("dbo.Preferences", "ovhSmsServiceName");
|
|
}
|
|
}
|
|
}
|