public override void Down(SchemaAction schema)
 {
     schema.ChangeTable("t_preferences", t =>
     {
         t.AddInt32("enum_type_movie");
     });
 }
Exemplo n.º 2
0
 public override void Down(SchemaAction schema)
 {
     schema.ChangeTable("t_users", t =>
     {
         t.RemoveColumn("login");
     });
 }
 public override void Up(SchemaAction schema)
 {
     schema.ChangeTable("t_preferences", t =>
     {
         t.RemoveColumn("enum_type_movie");
     });
 }
Exemplo n.º 4
0
 public override void Up(SchemaAction schema)
 {
     schema.ChangeTable("t_itens", t =>
     {
         t.RemoveColumn("value");
     });
 }
Exemplo n.º 5
0
 public override void Up(SchemaAction schema)
 {
     schema.ChangeTable("t_users", t =>
     {
         t.AddString("login");
     });
 }
Exemplo n.º 6
0
 public override void Down(SchemaAction schema)
 {
     schema.ChangeTable("t_itens", t =>
     {
         t.AddDecimal("value");
     });
 }
 public override void Down(SchemaAction schema)
 {
     schema.ChangeTable("t_movies", t =>
     {
         t.RemoveColumn("value");
     });
 }
 public override void Up(SchemaAction schema)
 {
     schema.ChangeTable("t_movies", t =>
     {
         t.AddDouble("value");
     });
 }
 public override void Up(SchemaAction schema)
 {
     schema.ChangeTable("t_itens", t =>
     {
         t.AddDecimal("value").NotNullable();
     });
 }
Exemplo n.º 10
0
 public override void Down(SchemaAction schema)
 {
     schema.ChangeTable("t_movies", t =>
     {
         t.ChangeColumn("value", DbType.Double);
     });
 }
Exemplo n.º 11
0
 public override void Up(SchemaAction schema)
 {
     schema.ChangeTable("t_movies", t =>
     {
         t.ChangeColumn("value", DbType.Decimal);
     });
 }
Exemplo n.º 12
0
 public override void Down(SchemaAction schema)
 {
     schema.RemoveTable("t_movie_categories");
     schema.RemoveTable("t_categories");
     schema.ChangeTable("t_movies", t =>
     {
         t.RemoveColumn("is_active");
     });
 }
 public override void Down(SchemaAction schema)
 {
     schema.RenameTable("t_reservations", "t_reservation");
     schema.ChangeTable("t_users", t =>
     {
         t.RenameColumn("enum_profile_user", "enum_profile_users");
     });
     schema.ChangeTable("t_clients", t =>
     {
         t.RenameColumn("enum_profile_client", "enum_profile_clients");
     });
     schema.ChangeTable("t_preferences", t =>
     {
         t.RenameColumn("id_category", "id_categories");
     });
     schema.ChangeTable("t_itens", t =>
     {
         t.RenameColumn("id_movie", "id_movies");
     });
     schema.ChangeTable("t_sales", t =>
     {
         t.RenameColumn("enum_status_sale", "enum_status_sales");
     });
 }
Exemplo n.º 14
0
        public override void Up(SchemaAction schema)
        {
            schema.ChangeTable("t_movies", t =>
            {
                t.AddBoolean("is_active").NotNullable().Default(1);
            });

            schema.AddTable("t_categories", t =>
            {
                t.AddString("name");
            });

            schema.AddTable("t_movie_categories", t =>
            {
                t.AddInt32("id_movie").NotNullable().AutoForeignKey("t_movies");
                t.AddInt32("id_category").NotNullable().AutoForeignKey("t_categories");
            });
        }