You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.3 KiB
49 lines
1.3 KiB
using Microsoft.EntityFrameworkCore.Migrations; |
|
|
|
#nullable disable |
|
|
|
namespace Bit.SqliteMigrations.Migrations; |
|
|
|
/// <inheritdoc /> |
|
public partial class PM17830_AdminInitiatedSponsorships : Migration |
|
{ |
|
/// <inheritdoc /> |
|
protected override void Up(MigrationBuilder migrationBuilder) |
|
{ |
|
migrationBuilder.AddColumn<bool>( |
|
name: "IsAdminInitiated", |
|
table: "OrganizationSponsorship", |
|
type: "INTEGER", |
|
nullable: false, |
|
defaultValue: false); |
|
|
|
migrationBuilder.AddColumn<string>( |
|
name: "Notes", |
|
table: "OrganizationSponsorship", |
|
type: "TEXT", |
|
nullable: true); |
|
|
|
migrationBuilder.AddColumn<bool>( |
|
name: "UseAdminSponsoredFamilies", |
|
table: "Organization", |
|
type: "INTEGER", |
|
nullable: false, |
|
defaultValue: false); |
|
} |
|
|
|
/// <inheritdoc /> |
|
protected override void Down(MigrationBuilder migrationBuilder) |
|
{ |
|
migrationBuilder.DropColumn( |
|
name: "IsAdminInitiated", |
|
table: "OrganizationSponsorship"); |
|
|
|
migrationBuilder.DropColumn( |
|
name: "Notes", |
|
table: "OrganizationSponsorship"); |
|
|
|
migrationBuilder.DropColumn( |
|
name: "UseAdminSponsoredFamilies", |
|
table: "Organization"); |
|
} |
|
}
|
|
|