public override void Down(SchemaAction schema) { schema.ChangeTable("t_preferences", t => { t.AddInt32("enum_type_movie"); }); }
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"); }); }
public override void Up(SchemaAction schema) { schema.ChangeTable("t_itens", t => { t.RemoveColumn("value"); }); }
public override void Up(SchemaAction schema) { schema.ChangeTable("t_users", t => { t.AddString("login"); }); }
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(); }); }
public override void Down(SchemaAction schema) { schema.ChangeTable("t_movies", t => { t.ChangeColumn("value", DbType.Double); }); }
public override void Up(SchemaAction schema) { schema.ChangeTable("t_movies", t => { t.ChangeColumn("value", DbType.Decimal); }); }
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"); }); }
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"); }); }