Add service reminder migration Add Completed Service button to vehicle
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
// <auto-generated />
|
||||
namespace MileageTraker.Web.Migrations
|
||||
{
|
||||
using System.CodeDom.Compiler;
|
||||
using System.Data.Entity.Migrations;
|
||||
using System.Data.Entity.Migrations.Infrastructure;
|
||||
using System.Resources;
|
||||
|
||||
[GeneratedCode("EntityFramework.Migrations", "6.1.3-40302")]
|
||||
public sealed partial class ServiceReminder : IMigrationMetadata
|
||||
{
|
||||
private readonly ResourceManager Resources = new ResourceManager(typeof(ServiceReminder));
|
||||
|
||||
string IMigrationMetadata.Id
|
||||
{
|
||||
get { return "201510150220550_ServiceReminder"; }
|
||||
}
|
||||
|
||||
string IMigrationMetadata.Source
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
string IMigrationMetadata.Target
|
||||
{
|
||||
get { return Resources.GetString("Target"); }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
namespace MileageTraker.Web.Migrations
|
||||
{
|
||||
using System;
|
||||
using System.Data.Entity.Migrations;
|
||||
|
||||
public partial class ServiceReminder : DbMigration
|
||||
{
|
||||
public override void Up()
|
||||
{
|
||||
CreateTable(
|
||||
"dbo.ServiceReminder",
|
||||
c => new
|
||||
{
|
||||
ServiceReminderId = c.Int(nullable: false, identity: true),
|
||||
TargetOdometer = c.Int(nullable: false),
|
||||
Description = c.String(maxLength: 64),
|
||||
Vehicle_VehicleId = c.String(nullable: false, maxLength: 6),
|
||||
})
|
||||
.PrimaryKey(t => t.ServiceReminderId)
|
||||
.ForeignKey("dbo.Vehicle", t => t.Vehicle_VehicleId, cascadeDelete: true)
|
||||
.Index(t => t.Vehicle_VehicleId);
|
||||
|
||||
}
|
||||
|
||||
public override void Down()
|
||||
{
|
||||
DropForeignKey("dbo.ServiceReminder", "Vehicle_VehicleId", "dbo.Vehicle");
|
||||
DropIndex("dbo.ServiceReminder", new[] { "Vehicle_VehicleId" });
|
||||
DropTable("dbo.ServiceReminder");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user