From e896f3515b17212bec5793f903d1d1c792e71a18 Mon Sep 17 00:00:00 2001 From: angelamayxie Date: Thu, 4 Dec 2025 14:31:47 -0800 Subject: [PATCH] update datetime precision for tags and branch activity --- go/libraries/doltcore/sqle/dtables/branch_activity_table.go | 6 +++--- go/libraries/doltcore/sqle/dtables/tags_table.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/go/libraries/doltcore/sqle/dtables/branch_activity_table.go b/go/libraries/doltcore/sqle/dtables/branch_activity_table.go index 15b8ef770b..c230170ab3 100644 --- a/go/libraries/doltcore/sqle/dtables/branch_activity_table.go +++ b/go/libraries/doltcore/sqle/dtables/branch_activity_table.go @@ -50,10 +50,10 @@ func (bat *BranchActivityTable) String() string { func (bat *BranchActivityTable) Schema() sql.Schema { return []*sql.Column{ {Name: "branch", Type: types.Text, Source: bat.tableName, PrimaryKey: true, Nullable: false, DatabaseSource: bat.db.Name()}, - {Name: "last_read", Type: types.Datetime, Source: bat.tableName, PrimaryKey: false, Nullable: true, DatabaseSource: bat.db.Name()}, - {Name: "last_write", Type: types.Datetime, Source: bat.tableName, PrimaryKey: false, Nullable: true, DatabaseSource: bat.db.Name()}, + {Name: "last_read", Type: types.DatetimeMaxPrecision, Source: bat.tableName, PrimaryKey: false, Nullable: true, DatabaseSource: bat.db.Name()}, + {Name: "last_write", Type: types.DatetimeMaxPrecision, Source: bat.tableName, PrimaryKey: false, Nullable: true, DatabaseSource: bat.db.Name()}, {Name: "active_sessions", Type: types.Int32, Source: bat.tableName, PrimaryKey: false, Nullable: false, DatabaseSource: bat.db.Name()}, - {Name: "system_start_time", Type: types.Datetime, Source: bat.tableName, PrimaryKey: false, Nullable: false, DatabaseSource: bat.db.Name()}, + {Name: "system_start_time", Type: types.DatetimeMaxPrecision, Source: bat.tableName, PrimaryKey: false, Nullable: false, DatabaseSource: bat.db.Name()}, } } diff --git a/go/libraries/doltcore/sqle/dtables/tags_table.go b/go/libraries/doltcore/sqle/dtables/tags_table.go index 4e42bebb64..c5e73b0762 100644 --- a/go/libraries/doltcore/sqle/dtables/tags_table.go +++ b/go/libraries/doltcore/sqle/dtables/tags_table.go @@ -71,7 +71,7 @@ func (tt *TagsTable) Schema() sql.Schema { {Name: "tag_hash", Type: types.Text, Source: tt.tableName, PrimaryKey: true}, {Name: "tagger", Type: types.Text, Source: tt.tableName, PrimaryKey: false}, {Name: "email", Type: types.Text, Source: tt.tableName, PrimaryKey: false}, - {Name: "date", Type: types.Datetime, Source: tt.tableName, PrimaryKey: false}, + {Name: "date", Type: types.Datetime3, Source: tt.tableName, PrimaryKey: false}, {Name: "message", Type: types.Text, Source: tt.tableName, PrimaryKey: false}, } }