dotnet / dotnet/efcore

Should the absense of migration hisotry table it be logged as error?

Open
#37,328 1 comment 0 reactions 1 assignee Claimed by @AndriySvyryd View on GitHub
area-migrations customer-reported
Dominant language
C#
Stars
14.8k
Forks
3.4k
PR merge metrics
PR metrics pending

Description

### Question

When the database is completely new, when migrating EF tries to read from the migration history table and logs the following error:

> Failed executing DbCommand (4ms) [Parameters=[], CommandType='Text', CommandTimeout='30'] SELECT migration_id, product_version FROM public."__EFMigrationsHistory" ORDER BY migration_id;

But it's a valid case, isn't it? Should not this error be logged with a different level?

### Your code

```csharp

```

### Stack traces

```text

```

### Verbose output

```text

```

### EF Core version

9.0.0

### Database provider

_No response_

### Target framework

_No response_

### Operating system

_No response_

### IDE

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.