mirror of
https://github.com/bitwarden/server
synced 2025-12-06 00:03:34 +00:00
* Add changes for initial migration * Fix the failing Database test * Fix the failing database test * Address the pr comments * revert some change sthat are not * Address the remaining comments * Remove unused object * remove MaxStorageGbIncreased in the views * refresh commands will ensure all stored procedures * Fix the typo
38 lines
987 B
C#
38 lines
987 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Bit.PostgresMigrations.Migrations;
|
|
|
|
/// <inheritdoc />
|
|
public partial class AddMaxStorageGbIncreasedColumn : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<short>(
|
|
name: "MaxStorageGbIncreased",
|
|
table: "User",
|
|
type: "smallint",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<short>(
|
|
name: "MaxStorageGbIncreased",
|
|
table: "Organization",
|
|
type: "smallint",
|
|
nullable: true);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "MaxStorageGbIncreased",
|
|
table: "User");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "MaxStorageGbIncreased",
|
|
table: "Organization");
|
|
}
|
|
}
|