Files: added new migrations
This commit is contained in:
parent
a56a17781b
commit
01d1d14788
2587
migrations/mysql/FilesDbContext/20221215125741_FilesDbContext_Upgrade1.Designer.cs
generated
Normal file
2587
migrations/mysql/FilesDbContext/20221215125741_FilesDbContext_Upgrade1.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -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");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -2329,6 +2329,10 @@ namespace ASC.Migrations.MySql.Migrations
|
|||||||
.HasColumnName("folder_type")
|
.HasColumnName("folder_type")
|
||||||
.HasDefaultValueSql("'0'");
|
.HasDefaultValueSql("'0'");
|
||||||
|
|
||||||
|
b.Property<bool>("HasLogo")
|
||||||
|
.HasColumnType("tinyint(1)")
|
||||||
|
.HasColumnName("has_logo");
|
||||||
|
|
||||||
b.Property<string>("Password")
|
b.Property<string>("Password")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasColumnType("varchar(512)")
|
.HasColumnType("varchar(512)")
|
||||||
@ -2502,6 +2506,10 @@ namespace ASC.Migrations.MySql.Migrations
|
|||||||
.HasColumnName("foldersCount")
|
.HasColumnName("foldersCount")
|
||||||
.HasDefaultValueSql("'0'");
|
.HasDefaultValueSql("'0'");
|
||||||
|
|
||||||
|
b.Property<bool>("HasLogo")
|
||||||
|
.HasColumnType("tinyint(1)")
|
||||||
|
.HasColumnName("has_logo");
|
||||||
|
|
||||||
b.Property<string>("ModifiedBy")
|
b.Property<string>("ModifiedBy")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasColumnType("char(38)")
|
.HasColumnType("char(38)")
|
||||||
|
2507
migrations/postgre/FilesDbContext/20221215125741_FilesDbContext_Upgrade1.Designer.cs
generated
Normal file
2507
migrations/postgre/FilesDbContext/20221215125741_FilesDbContext_Upgrade1.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -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");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -2283,6 +2283,10 @@ namespace ASC.Migrations.PostgreSql.Migrations
|
|||||||
.HasColumnType("integer")
|
.HasColumnType("integer")
|
||||||
.HasColumnName("folder_type");
|
.HasColumnName("folder_type");
|
||||||
|
|
||||||
|
b.Property<bool>("HasLogo")
|
||||||
|
.HasColumnType("boolean")
|
||||||
|
.HasColumnName("has_logo");
|
||||||
|
|
||||||
b.Property<string>("Password")
|
b.Property<string>("Password")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasMaxLength(100)
|
.HasMaxLength(100)
|
||||||
@ -2430,6 +2434,10 @@ namespace ASC.Migrations.PostgreSql.Migrations
|
|||||||
.HasColumnType("integer")
|
.HasColumnType("integer")
|
||||||
.HasColumnName("foldersCount");
|
.HasColumnName("foldersCount");
|
||||||
|
|
||||||
|
b.Property<bool>("HasLogo")
|
||||||
|
.HasColumnType("boolean")
|
||||||
|
.HasColumnName("has_logo");
|
||||||
|
|
||||||
b.Property<Guid>("ModifiedBy")
|
b.Property<Guid>("ModifiedBy")
|
||||||
.HasMaxLength(38)
|
.HasMaxLength(38)
|
||||||
.HasColumnType("uuid")
|
.HasColumnType("uuid")
|
||||||
|
Loading…
Reference in New Issue
Block a user