๋ท๋ท ์คํ testMigrate
์์๋๋ก ์๋ํ์ง ์๋ ๊ฒ์ ์ค๋ช ํ์ญ์์ค.
์์ธ๊ฐ ํ์๋๋ฉด ์ ์ฒด ์์ธ ์ธ๋ถ ์ ๋ณด(๋ฉ์์ง ๋ฐ ์คํ ์ถ์ )๋ฅผ ํฌํจํฉ๋๋ค.
`
Exception message:
Stack trace:
`EnsureCreate creates database...Error in GeneratedTime.CreatedDateTime: DATETIME does not support values generated on Add or Update in MySql <= 5.5, try explicitly setting the column type to TIMESTAMP
at Microsoft.EntityFrameworkCore.Migrations.MySqlMigrationsSqlGenerationHelper.ColumnDefinition(String schema, String table, String name, Type clrType, String type, Nullable`1 unicode, Nullable`1 maxLength, Boolean rowVersion, Boolean nullable, Object defaultValue, String defaultValueSql, String computedColumnSql, IAnnotatable annotatable, IModel model, MigrationCommandListBuilder builder) in E:\GitHubCode\Pomelo.EntityFrameworkCore.MySql\src\Pomelo.EntityFrameworkCore.MySql\Migrations\MySqlMigrationsSqlGenerator.cs:line 424
at Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGenerator.ColumnDefinition(AddColumnOperation operation, IModel model, MigrationCommandListBuilder builder)
at Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGenerator.Generate(CreateTableOperation operation, IModel model, MigrationCommandListBuilder builder, Boolean terminate)
at Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGenerator.Generate(CreateTableOperation operation, IModel model, MigrationCommandListBuilder builder)
at Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGenerator.Generate(MigrationOperation operation, IModel model, MigrationCommandListBuilder builder)
at Microsoft.EntityFrameworkCore.Migrations.MySqlMigrationsSqlGenerationHelper.Generate(MigrationOperation operation, IModel model, MigrationCommandListBuilder builder) in E:\GitHubCode\Pomelo.EntityFrameworkCore.MySql\src\Pomelo.EntityFrameworkCore.MySql\Migrations\MySqlMigrationsSqlGenerator.cs:line 59
at Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGenerator.Generate(IReadOnlyList`1 operations, IModel model)
at Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreator.CreateTables()
at Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreator.EnsureCreated()
at Pomelo.EntityFrameworkCore.MySql.PerfTests.Commands.TestMigrateCommand.Run() in E:\GitHubCode\Pomelo.EntityFrameworkCore.MySql\test\Pomelo.EntityFrameworkCore.MySql.PerfTests\Commands\TestMigrateCommand.cs:line 15
at Pomelo.EntityFrameworkCore.MySql.PerfTests.Commands.CommandRunner.Run(String[] args) in E:\GitHubCode\Pomelo.EntityFrameworkCore.MySql\test\Pomelo.EntityFrameworkCore.MySql.PerfTests\Commands\CommandRunner.cs:line 29
MySQL ๋ฒ์ : 10.1.23-MariaDB-1~jessie
์ด์ ์ฒด์ : win10
Pomelo.EntityFrameworkCore.MySql ๋ฒ์ : 1.1.0
๋ด ํ๋ก์ ํธ ์ค์ ์ ๋ํ ๊ธฐํ ์ธ๋ถ์ ๋ณด:
ํ ์คํธ์์ ๋ชจ๋ JSON ํ๋๋ฅผ ์ฃผ์ ์ฒ๋ฆฌํ๋ฉด ์๋ํฉ๋๋ค.
@caleblloyd๋ ๊ฐ์ฌํฉ๋๋ค.
@caleblloyd๋ ๊ฐ์ฌํฉ๋๋ค.
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
281์ ๋ ์ง ์๊ฐ ๋ฌธ์ ๋ฅผ ์์ ํฉ๋๋ค. ํ ์คํธ์ JSON ์ ํ์ด ์๊ณ MariaDB๊ฐ JSON ์ด์ ์ง์ํ์ง ์๊ธฐ ๋๋ฌธ์ ์ฌ์ ํ ํด๋น ๋ช ๋ น์ ์คํํ ์ ์์ต๋๋ค. ๊ทธ๋ฌ๋ ์์ ์ฌํญ์ ๋ ์ง ์๊ฐ ๋ฌธ์ ๋ฅผ ์ง์๋๋ค.
ํ ์คํธ์์ ๋ชจ๋ JSON ํ๋๋ฅผ ์ฃผ์ ์ฒ๋ฆฌํ๋ฉด ์๋ํฉ๋๋ค.