Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for getLabel (0.15 sec)

  1. migrator/migrator.go

    		return &chk, stmt.Table
    	}
    
    	uniqueConstraints := stmt.Schema.ParseUniqueConstraints()
    	if uni, ok := uniqueConstraints[name]; ok {
    		return &uni, stmt.Table
    	}
    
    	getTable := func(rel *schema.Relationship) string {
    		switch rel.Type {
    		case schema.HasOne, schema.HasMany:
    			return rel.FieldSchema.Table
    		case schema.Many2Many:
    			return rel.JoinTable.Table
    		}
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Apr 26 07:15:49 GMT 2024
    - 29K bytes
    - Viewed (0)
Back to top