Browse Source

jobs

confirmation-email
J 11 years ago
parent
commit
27fe5abcd3
3 changed files with 206 additions and 0 deletions
  1. +29
    -0
      Sevomin.Models/Migrations/201403280938368_Job.Designer.cs
  2. +51
    -0
      Sevomin.Models/Migrations/201403280938368_Job.cs
  3. +126
    -0
      Sevomin.Models/Migrations/201403280938368_Job.resx

+ 29
- 0
Sevomin.Models/Migrations/201403280938368_Job.Designer.cs View File

@ -0,0 +1,29 @@
// <auto-generated />
namespace Sevomin.Models.Migrations
{
using System.CodeDom.Compiler;
using System.Data.Entity.Migrations;
using System.Data.Entity.Migrations.Infrastructure;
using System.Resources;
[GeneratedCode("EntityFramework.Migrations", "6.1.0-30225")]
public sealed partial class Job : IMigrationMetadata
{
private readonly ResourceManager Resources = new ResourceManager(typeof(Job));
string IMigrationMetadata.Id
{
get { return "201403280938368_Job"; }
}
string IMigrationMetadata.Source
{
get { return null; }
}
string IMigrationMetadata.Target
{
get { return Resources.GetString("Target"); }
}
}
}

+ 51
- 0
Sevomin.Models/Migrations/201403280938368_Job.cs View File

@ -0,0 +1,51 @@
namespace Sevomin.Models.Migrations
{
using System;
using System.Data.Entity.Migrations;
public partial class Job : DbMigration
{
public override void Up()
{
DropForeignKey("dbo.ParameterValues", "Parameter_Id", "dbo.Parameters");
DropIndex("dbo.ParameterValues", new[] { "Parameter_Id" });
DropPrimaryKey("dbo.Parameters");
CreateTable(
"dbo.Jobs",
c => new
{
Id = c.Long(nullable: false, identity: true),
AvalinId = c.String(nullable: false, maxLength: 128),
ExpireDate = c.DateTime(nullable: false),
Description = c.String(),
ResumeType = c.Byte(nullable: false),
ContactPersonName = c.String(),
ContactPersonPhone = c.String(),
ContactPersonEMail = c.String(),
ShowCompanyName = c.Boolean(nullable: false),
ShowCompanyLogo = c.Boolean(nullable: false),
IsFullTime = c.Boolean(nullable: false),
})
.PrimaryKey(t => t.Id)
.ForeignKey("dbo.Avalin", t => t.AvalinId)
.Index(t => t.AvalinId);
AlterColumn("dbo.Parameters", "Id", c => c.Long(nullable: false, identity: true));
AddPrimaryKey("dbo.Parameters", "Id");
DropColumn("dbo.ParameterValues", "Parameter_Id");
}
public override void Down()
{
AddColumn("dbo.ParameterValues", "Parameter_Id", c => c.Int());
DropForeignKey("dbo.Jobs", "AvalinId", "dbo.Avalin");
DropIndex("dbo.Jobs", new[] { "AvalinId" });
DropPrimaryKey("dbo.Parameters");
AlterColumn("dbo.Parameters", "Id", c => c.Int(nullable: false, identity: true));
DropTable("dbo.Jobs");
AddPrimaryKey("dbo.Parameters", "Id");
CreateIndex("dbo.ParameterValues", "Parameter_Id");
AddForeignKey("dbo.ParameterValues", "Parameter_Id", "dbo.Parameters", "Id");
}
}
}

+ 126
- 0
Sevomin.Models/Migrations/201403280938368_Job.resx
File diff suppressed because it is too large
View File


Loading…
Cancel
Save