Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using FluentMigrator;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- namespace MovieDb.Migrations.DefaultDB
- {
- [Migration(20160519115100)]
- public class DefaultDB_20160519_115100_MovieTable : Migration
- {
- public override void Down()
- {
- }
- public override void Up()
- {
- Create.Schema("mov");
- Create.Table("Movie").InSchema("mov")
- .WithColumn("MovieId").AsInt32().Identity().PrimaryKey().NotNullable()
- .WithColumn("Title").AsString(200).NotNullable()
- .WithColumn("Description").AsString(1000).Nullable()
- .WithColumn("StroryLine").AsString(Int32.MaxValue).NotNullable()
- .WithColumn("Year").AsInt32().Nullable()
- .WithColumn("ReeleaseDate").AsDateTime().Nullable()
- .WithColumn("Runtime").AsInt32().Nullable();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement