Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for user_migrate_columns (0.09 sec)

  1. tests/migrate_test.go

    		Birthday            time.Time `gorm:"precision:2"`
    		NameIgnoreMigration string    `gorm:"size:100"`
    	}
    
    	if err := DB.Table("user_migrate_columns").AutoMigrate(&UserMigrateColumn2{}); err != nil {
    		t.Fatalf("failed to auto migrate, got error: %v", err)
    	}
    
    	columnTypes, err := DB.Table("user_migrate_columns").Migrator().ColumnTypes(&UserMigrateColumn{})
    	if err != nil {
    		t.Fatalf("failed to get column types, got error: %v", err)
    	}
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Mar 18 11:24:16 UTC 2024
    - 56.2K bytes
    - Viewed (0)
Back to top