Skip to content

Commit ec62d54

Browse files
Ticket #887 : Update form builder database
1 parent 08fdcc8 commit ec62d54

16 files changed

Lines changed: 1251 additions & 8 deletions

formbuilder/FormBuilder.MySQLMigrations/Migrations/20250612210115_AddTranslations.Designer.cs

Lines changed: 260 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
using Microsoft.EntityFrameworkCore.Migrations;
2+
3+
#nullable disable
4+
5+
namespace FormBuilder.MySQLMigrations.Migrations
6+
{
7+
/// <inheritdoc />
8+
public partial class AddTranslations : Migration
9+
{
10+
/// <inheritdoc />
11+
protected override void Up(MigrationBuilder migrationBuilder)
12+
{
13+
migrationBuilder.AddColumn<string>(
14+
name: "ErrorMessageTranslations",
15+
table: "Forms",
16+
type: "longtext",
17+
nullable: false)
18+
.Annotation("MySql:CharSet", "utf8mb4");
19+
20+
migrationBuilder.AddColumn<string>(
21+
name: "SuccessMessageTranslations",
22+
table: "Forms",
23+
type: "longtext",
24+
nullable: false)
25+
.Annotation("MySql:CharSet", "utf8mb4");
26+
}
27+
28+
/// <inheritdoc />
29+
protected override void Down(MigrationBuilder migrationBuilder)
30+
{
31+
migrationBuilder.DropColumn(
32+
name: "ErrorMessageTranslations",
33+
table: "Forms");
34+
35+
migrationBuilder.DropColumn(
36+
name: "SuccessMessageTranslations",
37+
table: "Forms");
38+
}
39+
}
40+
}

formbuilder/FormBuilder.MySQLMigrations/Migrations/FormBuilderDbContextModelSnapshot.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ protected override void BuildModel(ModelBuilder modelBuilder)
4242
.IsRequired()
4343
.HasColumnType("longtext");
4444

45+
b.Property<string>("ErrorMessageTranslations")
46+
.IsRequired()
47+
.HasColumnType("longtext");
48+
4549
b.Property<string>("Name")
4650
.IsRequired()
4751
.HasColumnType("longtext");
@@ -52,6 +56,10 @@ protected override void BuildModel(ModelBuilder modelBuilder)
5256
b.Property<int>("Status")
5357
.HasColumnType("int");
5458

59+
b.Property<string>("SuccessMessageTranslations")
60+
.IsRequired()
61+
.HasColumnType("longtext");
62+
5563
b.Property<DateTime>("UpdateDateTime")
5664
.HasColumnType("datetime(6)");
5765

0 commit comments

Comments
 (0)