fixed data to open wizard if magration true
This commit is contained in:
parent
5a16c5a6ff
commit
e02e833d31
@ -23,8 +23,13 @@ namespace ASC.Core.Common.EF.Model
|
||||
.Add(MySqlAddWebstudioSettings, Provider.MySql)
|
||||
.Add(PgSqlAddWebstudioSettings, Provider.Postgre)
|
||||
.HasData(
|
||||
new DbWebstudioSettings { TenantId = 1, Id = Guid.Parse("9a925891-1f92-4ed7-b277-d6f649739f06"), UserId = Guid.Parse("00000000-0000-0000-0000-000000000000"), Data = "{'Completed':false}" }
|
||||
);
|
||||
new DbWebstudioSettings
|
||||
{
|
||||
TenantId = 1,
|
||||
Id = Guid.Parse("9a925891-1f92-4ed7-b277-d6f649739f06"),
|
||||
UserId = Guid.Parse("00000000-0000-0000-0000-000000000000"),
|
||||
Data = "{\"Completed\":false}"
|
||||
});
|
||||
return modelBuilder;
|
||||
}
|
||||
|
||||
|
@ -30,8 +30,19 @@ namespace ASC.Core.Common.EF
|
||||
.Add(MySqlAddDbQuota, Provider.MySql)
|
||||
.Add(PgSqlAddDbQuota, Provider.Postgre)
|
||||
.HasData(
|
||||
new DbQuota { Tenant = -1, Name = "default", Description = null, MaxFileSize = 102400, MaxTotalSize = 10995116277760, ActiveUsers = 10000, Features = "domain,audit,controlpanel,healthcheck,ldap,sso,whitelabel,branding,ssbranding,update,support,portals:10000,discencryption,privacyroom,restore", Price = decimal.Parse("0,00"), Price2 = decimal.Parse("0,00"), AvangateId = "0", Visible = false }
|
||||
);
|
||||
new DbQuota
|
||||
{
|
||||
Tenant = -1,
|
||||
Name = "default",
|
||||
Description = null,
|
||||
MaxFileSize = 102400,
|
||||
MaxTotalSize = 10995116277760,
|
||||
ActiveUsers = 10000,
|
||||
Features = "domain,audit,controlpanel,healthcheck,ldap,sso,whitelabel,branding,ssbranding,update,support,portals:10000,discencryption,privacyroom,restore",
|
||||
Price = decimal.Parse("0,00"),
|
||||
Price2 = decimal.Parse("0,00"),
|
||||
AvangateId = "0", Visible = false
|
||||
});
|
||||
|
||||
return modelBuilder;
|
||||
}
|
||||
|
@ -28,8 +28,7 @@ namespace ASC.Core.Common.EF
|
||||
{
|
||||
Tenant = 1,
|
||||
UserId = Guid.Parse("66faa6e4-f133-11ea-b126-00ffeec8b4ef"),
|
||||
PwdHash = "vLFfghR5tNV3K9DKhmwArV+SbjWAcgZZzIDTnJ0JgCo=",
|
||||
PwdHashSha512 = "USubvPlB+ogq0Q1trcSupg==",
|
||||
PwdHash = "jGl25bVBBBW96Qi9Te4V37Fnqchz/Eu4qB9vKrRIqRg=",
|
||||
LastModified = DateTime.UtcNow
|
||||
});
|
||||
|
||||
|
@ -586,8 +586,7 @@ namespace ASC.Core.Common.Migrations.MySql.TenantDbContextMySql
|
||||
{
|
||||
UserId = "66faa6e4-f133-11ea-b126-00ffeec8b4ef",
|
||||
LastModified = new DateTime(2021, 3, 9, 9, 51, 15, 581, DateTimeKind.Utc).AddTicks(9172),
|
||||
PwdHash = "vLFfghR5tNV3K9DKhmwArV+SbjWAcgZZzIDTnJ0JgCo=",
|
||||
PwdHashSha512 = "USubvPlB+ogq0Q1trcSupg==",
|
||||
PwdHash = "jGl25bVBBBW96Qi9Te4V37Fnqchz/Eu4qB9vKrRIqRg=",
|
||||
Tenant = 1
|
||||
});
|
||||
});
|
||||
|
@ -230,8 +230,8 @@ namespace ASC.Core.Common.Migrations.MySql.TenantDbContextMySql
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "core_usersecurity",
|
||||
columns: new[] { "userid", "pwdhash", "pwdhashsha512", "tenant" },
|
||||
values: new object[] { "66faa6e4-f133-11ea-b126-00ffeec8b4ef", "vLFfghR5tNV3K9DKhmwArV+SbjWAcgZZzIDTnJ0JgCo=", "USubvPlB+ogq0Q1trcSupg==", 1 });
|
||||
columns: new[] { "userid", "pwdhash", "tenant" },
|
||||
values: new object[] { "66faa6e4-f133-11ea-b126-00ffeec8b4ef", "jGl25bVBBBW96Qi9Te4V37Fnqchz/Eu4qB9vKrRIqRg=", 1 });
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "email",
|
||||
|
@ -493,22 +493,6 @@ namespace ASC.Core.Common.Migrations.MySql.TenantDbContextMySql
|
||||
Tenant = 1,
|
||||
UserName = "administrator",
|
||||
WorkFromDate = new DateTime(2021, 3, 9, 17, 46, 59, 90, DateTimeKind.Utc).AddTicks(8614)
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = "005bb3ff-7de3-47d2-9b3d-61b9ec8a76a5",
|
||||
ActivationStatus = 0,
|
||||
CreateOn = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
||||
Email = "test@gmail.com",
|
||||
FirstName = "Test",
|
||||
LastModified = new DateTime(2021, 3, 9, 17, 46, 59, 90, DateTimeKind.Utc).AddTicks(9616),
|
||||
LastName = "User",
|
||||
PhoneActivation = 0,
|
||||
Removed = false,
|
||||
Status = 1,
|
||||
Tenant = 1,
|
||||
UserName = "TestUser",
|
||||
WorkFromDate = new DateTime(2021, 3, 9, 17, 46, 59, 90, DateTimeKind.Utc).AddTicks(9613)
|
||||
});
|
||||
});
|
||||
|
||||
@ -600,16 +584,7 @@ namespace ASC.Core.Common.Migrations.MySql.TenantDbContextMySql
|
||||
{
|
||||
UserId = "66faa6e4-f133-11ea-b126-00ffeec8b4ef",
|
||||
LastModified = new DateTime(2021, 3, 9, 17, 46, 59, 101, DateTimeKind.Utc).AddTicks(8498),
|
||||
PwdHash = "vLFfghR5tNV3K9DKhmwArV+SbjWAcgZZzIDTnJ0JgCo=",
|
||||
PwdHashSha512 = "USubvPlB+ogq0Q1trcSupg==",
|
||||
Tenant = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
UserId = "005bb3ff-7de3-47d2-9b3d-61b9ec8a76a5",
|
||||
LastModified = new DateTime(2021, 3, 9, 17, 46, 59, 101, DateTimeKind.Utc).AddTicks(8834),
|
||||
PwdHash = "vLFfghR5tNV3K9DKhmwArV+SbjWAcgZZzIDTnJ0JgCo=",
|
||||
PwdHashSha512 = "USubvPlB+ogq0Q1trcSupg==",
|
||||
PwdHash = "jGl25bVBBBW96Qi9Te4V37Fnqchz/Eu4qB9vKrRIqRg=",
|
||||
Tenant = 1
|
||||
});
|
||||
});
|
||||
|
@ -1457,8 +1457,7 @@ namespace ASC.Core.Common.Migrations.MySql.UserDbContextMySql
|
||||
{
|
||||
UserId = "66faa6e4-f133-11ea-b126-00ffeec8b4ef",
|
||||
LastModified = new DateTime(2021, 3, 9, 9, 52, 55, 781, DateTimeKind.Utc).AddTicks(9061),
|
||||
PwdHash = "vLFfghR5tNV3K9DKhmwArV+SbjWAcgZZzIDTnJ0JgCo=",
|
||||
PwdHashSha512 = "USubvPlB+ogq0Q1trcSupg==",
|
||||
PwdHash = "jGl25bVBBBW96Qi9Te4V37Fnqchz/Eu4qB9vKrRIqRg=",
|
||||
Tenant = 1
|
||||
});
|
||||
});
|
||||
|
@ -1455,8 +1455,7 @@ namespace ASC.Core.Common.Migrations.MySql.UserDbContextMySql
|
||||
{
|
||||
UserId = "66faa6e4-f133-11ea-b126-00ffeec8b4ef",
|
||||
LastModified = new DateTime(2021, 3, 9, 9, 52, 55, 781, DateTimeKind.Utc).AddTicks(9061),
|
||||
PwdHash = "vLFfghR5tNV3K9DKhmwArV+SbjWAcgZZzIDTnJ0JgCo=",
|
||||
PwdHashSha512 = "USubvPlB+ogq0Q1trcSupg==",
|
||||
PwdHash = "jGl25bVBBBW96Qi9Te4V37Fnqchz/Eu4qB9vKrRIqRg=",
|
||||
Tenant = 1
|
||||
});
|
||||
});
|
||||
|
@ -77,7 +77,7 @@ namespace ASC.Core.Common.Migrations.MySql.WebstudioDbContextMySql
|
||||
TenantId = 1,
|
||||
Id = "9a925891-1f92-4ed7-b277-d6f649739f06",
|
||||
UserId = "00000000-0000-0000-0000-000000000000",
|
||||
Data = "{'Completed':false}"
|
||||
Data = "{\"Completed\":false}"
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -60,7 +60,7 @@ namespace ASC.Core.Common.Migrations.MySql.WebstudioDbContextMySql
|
||||
migrationBuilder.InsertData(
|
||||
table: "webstudio_settings",
|
||||
columns: new[] { "ID", "TenantID", "UserID", "Data" },
|
||||
values: new object[] { "9a925891-1f92-4ed7-b277-d6f649739f06", 1, "00000000-0000-0000-0000-000000000000", "{'Completed':false}" });
|
||||
values: new object[] { "9a925891-1f92-4ed7-b277-d6f649739f06", 1, "00000000-0000-0000-0000-000000000000", "{\"Completed\":false}" });
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "ID",
|
||||
|
@ -75,7 +75,7 @@ namespace ASC.Core.Common.Migrations.MySql.WebstudioDbContextMySql
|
||||
TenantId = 1,
|
||||
Id = "9a925891-1f92-4ed7-b277-d6f649739f06",
|
||||
UserId = "00000000-0000-0000-0000-000000000000",
|
||||
Data = "{'Completed':false}"
|
||||
Data = "{\"Completed\":false}"
|
||||
});
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user