Skip to content

Commit cd9178e

Browse files
Fixes
1 parent c5ec7cc commit cd9178e

File tree

5 files changed

+14
-3
lines changed

5 files changed

+14
-3
lines changed

backend/src/Squidex.Data.EntityFramework/Providers/MySql/Extensions.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ public static StringBuilder AppendJsonPath(this StringBuilder sb, PropertyPath p
2828
else
2929
{
3030
sb.Append('.');
31+
sb.Append('"');
3132
sb.Append(property);
33+
sb.Append('"');
3234
}
3335
}
3436

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
$migrationName = $args[0]
22

33
dotnet ef migrations add $migrationName --context MysqlDbContext -o Providers/MySql/Migrations
4-
dotnet ef migrations add $migrationName --context PostgresDbContext -o Providers/Postgres/Migrations
5-
dotnet ef migrations add $migrationName --context SqlServerDbContext -o Providers/SqlServer/Migrations
4+
# dotnet ef migrations add $migrationName --context PostgresDbContext -o Providers/Postgres/Migrations
5+
# dotnet ef migrations add $migrationName --context SqlServerDbContext -o Providers/SqlServer/Migrations

backend/src/Squidex/appsettings.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,14 @@
568568
// The connection string to your database.
569569
"connectionString": "",
570570

571+
// For MySQL
572+
//
573+
// Ensure that
574+
// - Version is set correctly.
575+
// - Server is initialized with --log-bin-trust-function-creators=1
576+
// - Server is initialized with --local-infile=1 (for bulk inserts)
577+
// - Connection String has: AllowLoadLocalInfile=true
578+
571579
// The version of the MySQL server.
572580
"version": "9.2.0-mysql",
573581

tools/TestSuite/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ services:
3030
- MYSQL_USER=admin
3131
- MYSQL_PASSWORD=secret
3232
- MYSQL_ROOT_PASSWORD=secret
33-
command: --log-bin-trust-function-creators=1
33+
command: --log-bin-trust-function-creators=1 --local-infile=1
3434
volumes:
3535
- mysql_data:/var/lib/mysql
3636
networks:

tools/TestSuite/mysql/init.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SET GLOBAL local_infile = true;

0 commit comments

Comments
 (0)