You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Intersect.Server/MIGRATIONS.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,10 +37,11 @@ Example:
37
37
38
38
`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>"`
39
39
40
+
**Additionally, when trying to generate a migration on Windows you may need to include `Server=localhost` in your connection string.**
40
41
41
42
**_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:
42
43
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`
0 commit comments