1
0
mirror of https://github.com/bitwarden/server.git synced 2025-01-23 22:01:28 +01:00
bitwarden-server/util/MySqlMigrations/Migrations/20241219035803_AlterUser_AddVerifyDevice.cs
2024-12-19 09:04:14 -08:00

29 lines
699 B
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Bit.MySqlMigrations.Migrations;
/// <inheritdoc />
public partial class AlterUser_AddVerifyDevice : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "VerifyDevices",
table: "User",
type: "tinyint(1)",
nullable: false,
defaultValue: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "VerifyDevices",
table: "User");
}
}