173 lines
5.4 KiB
C#
173 lines
5.4 KiB
C#
|
|
using System;
|
||
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||
|
|
|
||
|
|
#nullable disable
|
||
|
|
|
||
|
|
namespace JobsMedical.Web.Migrations
|
||
|
|
{
|
||
|
|
/// <inheritdoc />
|
||
|
|
public partial class SocialPosting : Migration
|
||
|
|
{
|
||
|
|
/// <inheritdoc />
|
||
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||
|
|
{
|
||
|
|
migrationBuilder.AddColumn<string>(
|
||
|
|
name: "InstagramHashtags",
|
||
|
|
table: "AppSettings",
|
||
|
|
type: "character varying(1000)",
|
||
|
|
maxLength: 1000,
|
||
|
|
nullable: true);
|
||
|
|
|
||
|
|
migrationBuilder.AddColumn<string>(
|
||
|
|
name: "SocialBaleBotToken",
|
||
|
|
table: "AppSettings",
|
||
|
|
type: "character varying(200)",
|
||
|
|
maxLength: 200,
|
||
|
|
nullable: true);
|
||
|
|
|
||
|
|
migrationBuilder.AddColumn<string>(
|
||
|
|
name: "SocialBaleChatId",
|
||
|
|
table: "AppSettings",
|
||
|
|
type: "character varying(120)",
|
||
|
|
maxLength: 120,
|
||
|
|
nullable: true);
|
||
|
|
|
||
|
|
migrationBuilder.AddColumn<bool>(
|
||
|
|
name: "SocialBaleEnabled",
|
||
|
|
table: "AppSettings",
|
||
|
|
type: "boolean",
|
||
|
|
nullable: false,
|
||
|
|
defaultValue: false);
|
||
|
|
|
||
|
|
migrationBuilder.AddColumn<bool>(
|
||
|
|
name: "SocialEnabled",
|
||
|
|
table: "AppSettings",
|
||
|
|
type: "boolean",
|
||
|
|
nullable: false,
|
||
|
|
defaultValue: false);
|
||
|
|
|
||
|
|
migrationBuilder.AddColumn<string>(
|
||
|
|
name: "SocialFooter",
|
||
|
|
table: "AppSettings",
|
||
|
|
type: "character varying(1000)",
|
||
|
|
maxLength: 1000,
|
||
|
|
nullable: true);
|
||
|
|
|
||
|
|
migrationBuilder.AddColumn<string>(
|
||
|
|
name: "SocialHeader",
|
||
|
|
table: "AppSettings",
|
||
|
|
type: "character varying(1000)",
|
||
|
|
maxLength: 1000,
|
||
|
|
nullable: true);
|
||
|
|
|
||
|
|
migrationBuilder.AddColumn<bool>(
|
||
|
|
name: "SocialInstagramEnabled",
|
||
|
|
table: "AppSettings",
|
||
|
|
type: "boolean",
|
||
|
|
nullable: false,
|
||
|
|
defaultValue: false);
|
||
|
|
|
||
|
|
migrationBuilder.AddColumn<DateTime>(
|
||
|
|
name: "SocialLastPostedAt",
|
||
|
|
table: "AppSettings",
|
||
|
|
type: "timestamp with time zone",
|
||
|
|
nullable: true);
|
||
|
|
|
||
|
|
migrationBuilder.AddColumn<int>(
|
||
|
|
name: "SocialPostsPerDay",
|
||
|
|
table: "AppSettings",
|
||
|
|
type: "integer",
|
||
|
|
nullable: false,
|
||
|
|
defaultValue: 0);
|
||
|
|
|
||
|
|
migrationBuilder.AddColumn<string>(
|
||
|
|
name: "SocialTelegramBotToken",
|
||
|
|
table: "AppSettings",
|
||
|
|
type: "character varying(200)",
|
||
|
|
maxLength: 200,
|
||
|
|
nullable: true);
|
||
|
|
|
||
|
|
migrationBuilder.AddColumn<string>(
|
||
|
|
name: "SocialTelegramChatId",
|
||
|
|
table: "AppSettings",
|
||
|
|
type: "character varying(120)",
|
||
|
|
maxLength: 120,
|
||
|
|
nullable: true);
|
||
|
|
|
||
|
|
migrationBuilder.AddColumn<bool>(
|
||
|
|
name: "SocialTelegramEnabled",
|
||
|
|
table: "AppSettings",
|
||
|
|
type: "boolean",
|
||
|
|
nullable: false,
|
||
|
|
defaultValue: false);
|
||
|
|
|
||
|
|
migrationBuilder.AddColumn<bool>(
|
||
|
|
name: "SocialUseProxy",
|
||
|
|
table: "AppSettings",
|
||
|
|
type: "boolean",
|
||
|
|
nullable: false,
|
||
|
|
defaultValue: false);
|
||
|
|
}
|
||
|
|
|
||
|
|
/// <inheritdoc />
|
||
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||
|
|
{
|
||
|
|
migrationBuilder.DropColumn(
|
||
|
|
name: "InstagramHashtags",
|
||
|
|
table: "AppSettings");
|
||
|
|
|
||
|
|
migrationBuilder.DropColumn(
|
||
|
|
name: "SocialBaleBotToken",
|
||
|
|
table: "AppSettings");
|
||
|
|
|
||
|
|
migrationBuilder.DropColumn(
|
||
|
|
name: "SocialBaleChatId",
|
||
|
|
table: "AppSettings");
|
||
|
|
|
||
|
|
migrationBuilder.DropColumn(
|
||
|
|
name: "SocialBaleEnabled",
|
||
|
|
table: "AppSettings");
|
||
|
|
|
||
|
|
migrationBuilder.DropColumn(
|
||
|
|
name: "SocialEnabled",
|
||
|
|
table: "AppSettings");
|
||
|
|
|
||
|
|
migrationBuilder.DropColumn(
|
||
|
|
name: "SocialFooter",
|
||
|
|
table: "AppSettings");
|
||
|
|
|
||
|
|
migrationBuilder.DropColumn(
|
||
|
|
name: "SocialHeader",
|
||
|
|
table: "AppSettings");
|
||
|
|
|
||
|
|
migrationBuilder.DropColumn(
|
||
|
|
name: "SocialInstagramEnabled",
|
||
|
|
table: "AppSettings");
|
||
|
|
|
||
|
|
migrationBuilder.DropColumn(
|
||
|
|
name: "SocialLastPostedAt",
|
||
|
|
table: "AppSettings");
|
||
|
|
|
||
|
|
migrationBuilder.DropColumn(
|
||
|
|
name: "SocialPostsPerDay",
|
||
|
|
table: "AppSettings");
|
||
|
|
|
||
|
|
migrationBuilder.DropColumn(
|
||
|
|
name: "SocialTelegramBotToken",
|
||
|
|
table: "AppSettings");
|
||
|
|
|
||
|
|
migrationBuilder.DropColumn(
|
||
|
|
name: "SocialTelegramChatId",
|
||
|
|
table: "AppSettings");
|
||
|
|
|
||
|
|
migrationBuilder.DropColumn(
|
||
|
|
name: "SocialTelegramEnabled",
|
||
|
|
table: "AppSettings");
|
||
|
|
|
||
|
|
migrationBuilder.DropColumn(
|
||
|
|
name: "SocialUseProxy",
|
||
|
|
table: "AppSettings");
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|