using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace CredentialManager.Migrations
{
///
public partial class AddDeletionSyncFeature : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn(
name: "DeletedAt",
table: "KeyAssociations",
type: "TEXT",
nullable: true);
migrationBuilder.AddColumn(
name: "DeletionSynced",
table: "KeyAssociations",
type: "INTEGER",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn(
name: "DeletionSyncedAt",
table: "KeyAssociations",
type: "TEXT",
nullable: true);
migrationBuilder.AddColumn(
name: "IsSourceDeleted",
table: "KeyAssociations",
type: "INTEGER",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn(
name: "DeletionAction",
table: "DataCouplerProfiles",
type: "TEXT",
maxLength: 20,
nullable: true);
migrationBuilder.AddColumn(
name: "DeletionMarkField",
table: "DataCouplerProfiles",
type: "TEXT",
maxLength: 200,
nullable: true);
migrationBuilder.AddColumn(
name: "DeletionMarkValue",
table: "DataCouplerProfiles",
type: "TEXT",
maxLength: 100,
nullable: true);
migrationBuilder.AddColumn(
name: "SyncDeletions",
table: "DataCouplerProfiles",
type: "INTEGER",
nullable: false,
defaultValue: false);
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "DeletedAt",
table: "KeyAssociations");
migrationBuilder.DropColumn(
name: "DeletionSynced",
table: "KeyAssociations");
migrationBuilder.DropColumn(
name: "DeletionSyncedAt",
table: "KeyAssociations");
migrationBuilder.DropColumn(
name: "IsSourceDeleted",
table: "KeyAssociations");
migrationBuilder.DropColumn(
name: "DeletionAction",
table: "DataCouplerProfiles");
migrationBuilder.DropColumn(
name: "DeletionMarkField",
table: "DataCouplerProfiles");
migrationBuilder.DropColumn(
name: "DeletionMarkValue",
table: "DataCouplerProfiles");
migrationBuilder.DropColumn(
name: "SyncDeletions",
table: "DataCouplerProfiles");
}
}
}