Pomelo.entityframeworkcore.mysql: mariadb DATETIME์€ ์ƒ์„ฑ๋œ ๊ฐ’์„ ์ง€์›ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

์— ๋งŒ๋“  2017๋…„ 05์›” 22์ผ  ยท  3์ฝ”๋ฉ˜ํŠธ  ยท  ์ถœ์ฒ˜: PomeloFoundation/Pomelo.EntityFrameworkCore.MySql

์žฌํ˜„ ๋‹จ๊ณ„

๋‹ท๋„ท ์‹คํ–‰ 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

๋‚ด ํ”„๋กœ์ ํŠธ ์„ค์ •์— ๋Œ€ํ•œ ๊ธฐํƒ€ ์„ธ๋ถ€์ •๋ณด:

type-bug

๊ฐ€์žฅ ์œ ์šฉํ•œ ๋Œ“๊ธ€

281์€ ๋‚ ์งœ ์‹œ๊ฐ„ ๋ฌธ์ œ๋ฅผ ์ˆ˜์ •ํ•ฉ๋‹ˆ๋‹ค. ํ…Œ์ŠคํŠธ์— JSON ์œ ํ˜•์ด ์žˆ๊ณ  MariaDB๊ฐ€ JSON ์—ด์„ ์ง€์›ํ•˜์ง€ ์•Š๊ธฐ ๋•Œ๋ฌธ์— ์—ฌ์ „ํžˆ ํ•ด๋‹น ๋ช…๋ น์„ ์‹คํ–‰ํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค. ๊ทธ๋Ÿฌ๋‚˜ ์ˆ˜์ • ์‚ฌํ•ญ์€ ๋‚ ์งœ ์‹œ๊ฐ„ ๋ฌธ์ œ๋ฅผ ์ง€์›๋‹ˆ๋‹ค.

ํ…Œ์ŠคํŠธ์—์„œ ๋ชจ๋“  JSON ํ•„๋“œ๋ฅผ ์ฃผ์„ ์ฒ˜๋ฆฌํ•˜๋ฉด ์ž‘๋™ํ•ฉ๋‹ˆ๋‹ค.

๋ชจ๋“  3 ๋Œ“๊ธ€

281์€ ๋‚ ์งœ ์‹œ๊ฐ„ ๋ฌธ์ œ๋ฅผ ์ˆ˜์ •ํ•ฉ๋‹ˆ๋‹ค. ํ…Œ์ŠคํŠธ์— JSON ์œ ํ˜•์ด ์žˆ๊ณ  MariaDB๊ฐ€ JSON ์—ด์„ ์ง€์›ํ•˜์ง€ ์•Š๊ธฐ ๋•Œ๋ฌธ์— ์—ฌ์ „ํžˆ ํ•ด๋‹น ๋ช…๋ น์„ ์‹คํ–‰ํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค. ๊ทธ๋Ÿฌ๋‚˜ ์ˆ˜์ • ์‚ฌํ•ญ์€ ๋‚ ์งœ ์‹œ๊ฐ„ ๋ฌธ์ œ๋ฅผ ์ง€์›๋‹ˆ๋‹ค.

ํ…Œ์ŠคํŠธ์—์„œ ๋ชจ๋“  JSON ํ•„๋“œ๋ฅผ ์ฃผ์„ ์ฒ˜๋ฆฌํ•˜๋ฉด ์ž‘๋™ํ•ฉ๋‹ˆ๋‹ค.

@caleblloyd๋‹˜ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค.

@caleblloyd๋‹˜ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค.

์ด ํŽ˜์ด์ง€๊ฐ€ ๋„์›€์ด ๋˜์—ˆ๋‚˜์š”?
0 / 5 - 0 ๋“ฑ๊ธ‰