Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for AlterColumn (0.1 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 Nov 03 09:35:10 UTC 2024
    - Last Modified: Fri Apr 26 07:15:49 UTC 2024
    - 29K bytes
    - Viewed (0)
Back to top