dotnetclub-net / dotnetclub

dotnetclub.net 的源代码
https://dotnetclub.net
MIT License
259 stars 80 forks source link

迁移到PostgreSQL #46

Closed wallevy closed 5 years ago

wallevy commented 5 years ago

本地可以通过docker启动PostgreSQL

docker run --name postgres -p 5432:5432 -e POSTGRES_USER=root -e POSTGRES_PASSWORD=root -e POSTGRES_DB=dotnetclub -v $(pwd)/.pgdata:/var/lib/postgresql/data -d postgres:11.3-alpine
codecov-io commented 5 years ago

Codecov Report

Merging #46 into dev will decrease coverage by 0.07%. The diff coverage is 92.3%.

Impacted file tree graph

@@            Coverage Diff             @@
##              dev      #46      +/-   ##
==========================================
- Coverage   76.23%   76.15%   -0.08%     
==========================================
  Files         176      177       +1     
  Lines        4684     4677       -7     
  Branches       96       96              
==========================================
- Hits         3571     3562       -9     
- Misses       1033     1035       +2     
  Partials       80       80
Impacted Files Coverage Δ
...cussion.Migrations/017_AddSlugToFileRecordTable.cs 90.62% <100%> (ø) :arrow_up:
src/Discussion.Core/Pagination/Paging.cs 100% <100%> (ø) :arrow_up:
src/Discussion.Web/Startup.cs 85.71% <100%> (ø) :arrow_up:
src/Discussion.Migrations/005_CreateForeignKeys.cs 73.68% <100%> (ø) :arrow_up:
...scussion.Migrations/Supporting/DatabaseMigrator.cs 46.77% <100%> (ø)
...ons/Supporting/MigrationRunnerBuilderExtensions.cs 80% <80%> (ø)
src/Discussion.Core/Data/ServiceExtensions.cs 96.96% <90%> (-3.04%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 2132443...9c65c1b. Read the comment docs.

jijiechen commented 5 years ago

看了代码,非常感谢贡献! 想确认一下,确实还能兼容使用 Sqlite 时的情况吗?

wallevy commented 5 years ago

能的,本地测试没有问题