This commit is contained in:
CyJaySong 2023-07-21 11:35:15 +08:00
parent 21b54e5d61
commit 58ba01b299
1 changed files with 2 additions and 2 deletions

View File

@ -1209,7 +1209,7 @@ func TestInsertNotDeleted(t *testing.T) {
type TestInsertNotDeletedStructNotRight struct { type TestInsertNotDeletedStructNotRight struct {
ID uint64 `xorm:"'ID' pk autoincr"` ID uint64 `xorm:"'ID' pk autoincr"`
DeletedAt time.Time `xorm:"'DELETED_AT' DATETIME(6) deleted notnull"` DeletedAt time.Time `xorm:"'DELETED_AT' deleted notnull"`
} }
// notnull tag will be ignored // notnull tag will be ignored
err := testEngine.Sync(new(TestInsertNotDeletedStructNotRight)) err := testEngine.Sync(new(TestInsertNotDeletedStructNotRight))
@ -1217,7 +1217,7 @@ func TestInsertNotDeleted(t *testing.T) {
type TestInsertNotDeletedStruct struct { type TestInsertNotDeletedStruct struct {
ID uint64 `xorm:"'ID' pk autoincr"` ID uint64 `xorm:"'ID' pk autoincr"`
DeletedAt time.Time `xorm:"'DELETED_AT' DATETIME(6) deleted"` DeletedAt time.Time `xorm:"'DELETED_AT' deleted"`
} }
assert.NoError(t, testEngine.Sync(new(TestInsertNotDeletedStruct))) assert.NoError(t, testEngine.Sync(new(TestInsertNotDeletedStruct)))