Files: added new migrations

This commit is contained in:
Maksim Chegulov 2022-12-15 17:10:28 +03:00
parent a56a17781b
commit 01d1d14788
6 changed files with 5188 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,37 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace ASC.Migrations.MySql.Migrations.FilesDb
{
public partial class FilesDbContext_Upgrade1 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "has_logo",
table: "files_thirdparty_account",
type: "tinyint(1)",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn<bool>(
name: "has_logo",
table: "files_folder",
type: "tinyint(1)",
nullable: false,
defaultValue: false);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "has_logo",
table: "files_thirdparty_account");
migrationBuilder.DropColumn(
name: "has_logo",
table: "files_folder");
}
}
}

View File

@ -2329,6 +2329,10 @@ namespace ASC.Migrations.MySql.Migrations
.HasColumnName("folder_type")
.HasDefaultValueSql("'0'");
b.Property<bool>("HasLogo")
.HasColumnType("tinyint(1)")
.HasColumnName("has_logo");
b.Property<string>("Password")
.IsRequired()
.HasColumnType("varchar(512)")
@ -2502,6 +2506,10 @@ namespace ASC.Migrations.MySql.Migrations
.HasColumnName("foldersCount")
.HasDefaultValueSql("'0'");
b.Property<bool>("HasLogo")
.HasColumnType("tinyint(1)")
.HasColumnName("has_logo");
b.Property<string>("ModifiedBy")
.IsRequired()
.HasColumnType("char(38)")

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,41 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace ASC.Migrations.PostgreSql.Migrations.FilesDb
{
public partial class FilesDbContext_Upgrade1 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "has_logo",
schema: "onlyoffice",
table: "files_thirdparty_account",
type: "boolean",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn<bool>(
name: "has_logo",
schema: "onlyoffice",
table: "files_folder",
type: "boolean",
nullable: false,
defaultValue: false);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "has_logo",
schema: "onlyoffice",
table: "files_thirdparty_account");
migrationBuilder.DropColumn(
name: "has_logo",
schema: "onlyoffice",
table: "files_folder");
}
}
}

View File

@ -2283,6 +2283,10 @@ namespace ASC.Migrations.PostgreSql.Migrations
.HasColumnType("integer")
.HasColumnName("folder_type");
b.Property<bool>("HasLogo")
.HasColumnType("boolean")
.HasColumnName("has_logo");
b.Property<string>("Password")
.IsRequired()
.HasMaxLength(100)
@ -2430,6 +2434,10 @@ namespace ASC.Migrations.PostgreSql.Migrations
.HasColumnType("integer")
.HasColumnName("foldersCount");
b.Property<bool>("HasLogo")
.HasColumnType("boolean")
.HasColumnName("has_logo");
b.Property<Guid>("ModifiedBy")
.HasMaxLength(38)
.HasColumnType("uuid")