2017-07-22 19:27:41 +00:00
|
|
|
namespace SockScape.Migrations
|
2017-06-05 12:20:39 +00:00
|
|
|
{
|
|
|
|
using System;
|
|
|
|
using System.Data.Entity.Migrations;
|
|
|
|
|
|
|
|
public partial class Initial : DbMigration
|
|
|
|
{
|
|
|
|
public override void Up()
|
|
|
|
{
|
|
|
|
CreateTable(
|
|
|
|
"dbo.Users",
|
|
|
|
c => new
|
|
|
|
{
|
|
|
|
Id = c.Long(nullable: false, identity: true),
|
|
|
|
Username = c.String(nullable: false, unicode: false),
|
|
|
|
Password = c.String(nullable: false, unicode: false),
|
|
|
|
Joined = c.DateTime(nullable: false, precision: 0),
|
|
|
|
})
|
|
|
|
.PrimaryKey(t => t.Id);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
public override void Down()
|
|
|
|
{
|
|
|
|
DropTable("dbo.Users");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|