Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for RenameIndex (0.05 sec)

  1. migrator/migrator.go

    			currentDatabase, stmt.Table, name,
    		).Row().Scan(&count)
    	})
    
    	return count > 0
    }
    
    // RenameIndex rename index from oldName to newName
    func (m Migrator) RenameIndex(value interface{}, oldName, newName string) error {
    	return m.RunWithValue(value, func(stmt *gorm.Statement) error {
    		return m.DB.Exec(
    			"ALTER TABLE ? RENAME INDEX ? TO ?",
    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