fix code
This commit is contained in:
parent
21b54e5d61
commit
58ba01b299
|
@ -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)))
|
||||||
|
|
Loading…
Reference in New Issue