Skip to content

Commit 91b0fba

Browse files
update Mysql migration info (#2485)
Signed-off-by: WeylonSantana <[email protected]>
1 parent 540033b commit 91b0fba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Intersect.Server/MIGRATIONS.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,11 @@ Example:
3737

3838
`dotnet ef migrations add Net7Upgrade --context MySqlLoggingContext --namespace Intersect.Server.Migrations.MySql.Logging --output-dir Migrations/MySql/Logging/ -- --databaseType MySql --connectionString "Username=<username>;Password=<password>;Database=<a db that exists>"`
3939

40+
**Additionally, when trying to generate a migration on Windows you may need to include `Server=localhost` in your connection string.**
4041

4142
**_A connection string is required for generating MariaDB/MySQL migrations_**, if you fail to provide one (or provide an invalid one) it will crash and fail with something like the following:
4243

43-
`Unable to create an object of type 'MySqlPlayerContext'. For the different patterns supported at design time, see https://go.microsoft.com/fwlink/?linkid=851728`
44+
`Unable to create a 'DbContext' of type 'MySqlGameContext'. For the different patterns supported at design time, see https://go.microsoft.com/fwlink/?linkid=851728`
4445

4546
<details>
4647
<summary>

0 commit comments

Comments
 (0)