Advertisement
Guest User

Untitled

a guest
Apr 29th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. using FluentMigrator;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Web;
  6.  
  7. namespace MovieDb.Migrations.DefaultDB
  8. {
  9. [Migration(20160519115100)]
  10. public class DefaultDB_20160519_115100_MovieTable : Migration
  11. {
  12. public override void Down()
  13. {
  14.  
  15. }
  16. public override void Up()
  17. {
  18. Create.Schema("mov");
  19. Create.Table("Movie").InSchema("mov")
  20. .WithColumn("MovieId").AsInt32().Identity().PrimaryKey().NotNullable()
  21. .WithColumn("Title").AsString(200).NotNullable()
  22. .WithColumn("Description").AsString(1000).Nullable()
  23. .WithColumn("StroryLine").AsString(Int32.MaxValue).NotNullable()
  24. .WithColumn("Year").AsInt32().Nullable()
  25. .WithColumn("ReeleaseDate").AsDateTime().Nullable()
  26. .WithColumn("Runtime").AsInt32().Nullable();
  27. }
  28. }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement