Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VCST-463: Error column name xmin conflicts with a system column name #224

Merged
merged 3 commits into from
Feb 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 12 additions & 17 deletions src/VirtoCommerce.CoreModule.Data.MySql/Readme.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,19 @@
# Generate Migrations

## Package manager
Add-Migration Initial -Context VirtoCommerce.CoreModule.Data.Repositories.CoreDbContext -Verbose -OutputDir Migrations -Project VirtoCommerce.CoreModule.Data.MySql -StartupProject VirtoCommerce.CoreModule.Data.MySql -Debug



### Entity Framework Core Commands
```
dotnet tool install --global dotnet-ef --version 6.*
## Install CLI tools for Entity Framework Core
```cmd
dotnet tool install --global dotnet-ef --version 8.0.0
```

**Generate Migrations**
or update

```cmd
dotnet tool update --global dotnet-ef --version 8.0.0
```
dotnet ef migrations add Initial -- "{connection string}"
dotnet ef migrations add Update1 -- "{connection string}"
dotnet ef migrations add Update2 -- "{connection string}"
```

etc..

**Apply Migrations**
## Add Migration
Select Data.<Provider> folder and run following command for each provider:

`dotnet ef database update -- "{connection string}"`
```cmd
dotnet ef migrations add <migration-name>
```

This file was deleted.

This file was deleted.

30 changes: 12 additions & 18 deletions src/VirtoCommerce.CoreModule.Data.SqlServer/Readme.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,19 @@
# Generate Migrations

## Package manager
Add-Migration Initial -Context VirtoCommerce.CoreModule.Data.Repositories.CoreDbContext -Verbose -OutputDir Migrations -Project VirtoCommerce.CoreModule.Data.SqlServer -StartupProject VirtoCommerce.CoreModule.Data.SqlServer -Debug



### Entity Framework Core Commands
```

dotnet tool install --global dotnet-ef --version 6.*
## Install CLI tools for Entity Framework Core
```cmd
dotnet tool install --global dotnet-ef --version 8.0.0
```

**Generate Migrations**
or update

```
dotnet ef migrations add Initial -- "{connection string}"
dotnet ef migrations add Update1 -- "{connection string}"
dotnet ef migrations add Update2 -- "{connection string}"
```cmd
dotnet tool update --global dotnet-ef --version 8.0.0
```

etc..
## Add Migration
Select Data.<Provider> folder and run following command for each provider:

**Apply Migrations**

`dotnet ef database update -- "{connection string}"`
```cmd
dotnet ef migrations add <migration-name>
```
Loading