28 lines
792 B
C#
28 lines
792 B
C#
namespace SockScape.Migrations
|
|
{
|
|
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");
|
|
}
|
|
}
|
|
}
|