Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for AlterColumn (0.06 sec)

  1. migrator/migrator.go

    			}
    		}
    	}
    
    	// check comment
    	if comment, ok := columnType.Comment(); ok && comment != field.Comment {
    		// not primary key
    		if !field.PrimaryKey {
    			alterColumn = true
    		}
    	}
    
    	if alterColumn {
    		if err := m.DB.Migrator().AlterColumn(value, field.DBName); err != nil {
    			return err
    		}
    	}
    
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Fri Jun 06 02:35:01 UTC 2025
    - 29.5K bytes
    - Viewed (0)
Back to top