Skip to content

Commit e571457

Browse files
committed
Dump the precision for datetime columns following the new defaults
1 parent e2cb6d3 commit e571457

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## Unreleased
2+
3+
#### Changed
4+
5+
- [#1004](https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/pull/1004) Dump the precision for datetime columns following the new defaults.
6+
17
## v7.0.0.0.rc1
28

39
[Full changelog](https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/compare/6-1-stable...v7.0.0.0.rc1)

test/cases/schema_dumper_test_sqlserver.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class SchemaDumperTestSQLServer < ActiveRecord::TestCase
7979
assert_line :float_col, type: "float", limit: nil, precision: nil, scale: nil, default: nil
8080
assert_line :string_col, type: "string", limit: nil, precision: nil, scale: nil, default: nil
8181
assert_line :text_col, type: "text", limit: nil, precision: nil, scale: nil, default: nil
82-
assert_line :datetime_col, type: "datetime", limit: nil, precision: 6, scale: nil, default: nil
82+
assert_line :datetime_col, type: "datetime", limit: nil, precision: nil, scale: nil, default: nil
8383
assert_line :timestamp_col, type: "datetime", limit: nil, precision: nil, scale: nil, default: nil
8484
assert_line :time_col, type: "time", limit: nil, precision: 7, scale: nil, default: nil
8585
assert_line :date_col, type: "date", limit: nil, precision: nil, scale: nil, default: nil

0 commit comments

Comments
 (0)