Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestCurrentTimestamp (0.1 sec)

  1. tests/migrate_test.go

    		t.Fatalf("AutoMigrate err:%v", err)
    	}
    
    	// patch
    	err = DB.AutoMigrate(&MissPKUser{}, &MissPKLanguage{})
    	if err != nil {
    		t.Fatalf("AutoMigrate err:%v", err)
    	}
    }
    
    func TestCurrentTimestamp(t *testing.T) {
    	if DB.Dialector.Name() != "mysql" {
    		return
    	}
    	type CurrentTimestampTest struct {
    		ID     string     `gorm:"primary_key"`
    Registered: Sun Oct 27 09:35:08 UTC 2024
    - Last Modified: Mon Mar 18 11:24:16 UTC 2024
    - 56.2K bytes
    - Viewed (0)
Back to top