Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PM> Update-Database
- The EF Core tools version '2.1.1-rtm-30846' is older than that of the runtime '2.1.8-servicing-32085'. Update the tools for the latest features and bug fixes.
- Microsoft.EntityFrameworkCore.Infrastructure[10403]
- Entity Framework Core 2.1.8-servicing-32085 initialized 'ApplicationDbContext' using provider 'MySql.Data.EntityFrameworkCore' with options: None
- Microsoft.EntityFrameworkCore.Database.Command[20101]
- Executed DbCommand (11ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
- SELECT 1 FROM information_schema.tables
- WHERE table_name = '
- __EFMigrationsHistory' AND table_schema = DATABASE()
- Microsoft.EntityFrameworkCore.Database.Command[20101]
- Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
- SELECT 1 FROM information_schema.tables
- WHERE table_name = '
- __EFMigrationsHistory' AND table_schema = DATABASE()
- Microsoft.EntityFrameworkCore.Database.Command[20101]
- Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
- SELECT `MigrationId`, `ProductVersion`
- FROM `__EFMigrationsHistory`
- ORDER BY `MigrationId`;
- Microsoft.EntityFrameworkCore.Migrations[20402]
- Applying migration '00000000000000_CreateIdentitySchema'.
- Applying migration '00000000000000_CreateIdentitySchema'.
- fail: Microsoft.EntityFrameworkCore.Database.Command[20102]
- Failed executing DbCommand (48ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
- CREATE TABLE `AspNetRoles` (
- `Id` varchar(767) NOT NULL,
- `Name` varchar(256) NULL,
- `NormalizedName` varchar(256) NULL,
- `ConcurrencyStamp` text NULL,
- PRIMARY KEY (`Id`)
- );
- MySql.Data.MySqlClient.MySqlException (0x80004005): Table 'aspnetroles' already exists
- at MySql.Data.MySqlClient.MySqlStream.ReadPacket()
- at MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int64& insertedId)
- at MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force)
- at MySql.Data.MySqlClient.MySqlDataReader.NextResult()
- at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
- at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()
- at Microsoft.EntityFrameworkCore.Storage.Internal.RelationalCommand.Execute(IRelationalConnection connection, DbCommandMethod executeMethod, IReadOnlyDictionary`2 parameterValues)
- Failed executing DbCommand (48ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
- CREATE TABLE `AspNetRoles` (
- `Id` varchar(767) NOT NULL,
- `Name` varchar(256) NULL,
- `NormalizedName` varchar(256) NULL,
- `ConcurrencyStamp` text NULL,
- PRIMARY KEY (`Id`)
- );
- MySql.Data.MySqlClient.MySqlException (0x80004005): Table 'aspnetroles' already exists
- at MySql.Data.MySqlClient.MySqlStream.ReadPacket()
- at MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int64& insertedId)
- at MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force)
- at MySql.Data.MySqlClient.MySqlDataReader.NextResult()
- at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
- at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()
- at Microsoft.EntityFrameworkCore.Storage.Internal.RelationalCommand.Execute(IRelationalConnection connection, DbCommandMethod executeMethod, IReadOnlyDictionary`2 parameterValues)
- at Microsoft.EntityFrameworkCore.Storage.Internal.RelationalCommand.ExecuteNonQuery(IRelationalConnection connection, IReadOnlyDictionary`2 parameterValues)
- at Microsoft.EntityFrameworkCore.Migrations.MigrationCommand.ExecuteNonQuery(IRelationalConnection connection, IReadOnlyDictionary`2 parameterValues)
- at Microsoft.EntityFrameworkCore.Migrations.Internal.MigrationCommandExecutor.ExecuteNonQuery(IEnumerable`1 migrationCommands, IRelationalConnection connection)
- at Microsoft.EntityFrameworkCore.Migrations.Internal.Migrator.Migrate(String targetMigration)
- at Microsoft.EntityFrameworkCore.Design.Internal.MigrationsOperations.UpdateDatabase(String targetMigration, String contextType)
- at Microsoft.EntityFrameworkCore.Design.OperationExecutor.UpdateDatabase.<>c__DisplayClass0_1.<.ctor>b__0()
- at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.Execute(Action action)
- Table 'aspnetroles' already exists
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement