Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 5 of 5 for UniqueName (0.08 seconds)

  1. schema/naming.go

    }
    
    // IndexName generate index name
    func (ns NamingStrategy) IndexName(table, column string) string {
    	return ns.formatName("idx", table, ns.toDBName(column))
    }
    
    // UniqueName generate unique constraint name
    func (ns NamingStrategy) UniqueName(table, column string) string {
    	return ns.formatName("uni", table, ns.toDBName(column))
    }
    
    func (ns NamingStrategy) formatName(prefix, table, name string) string {
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Wed Jun 12 03:46:59 GMT 2024
    - 5.3K bytes
    - Click Count (0)
  2. src/main/webapp/js/admin/adminlte.min.js.map

      this._config.onTabClick(item)\n  }\n\n  onTabChanged(item) {\n    this._config.onTabChanged(item)\n  }\n\n  onTabCreated(item) {\n    this._config.onTabCreated(item)\n  }\n\n  createTab(title, link, uniqueName, autoOpen) {\n    let tabId = `panel-${uniqueName}`\n    let navId = `tab-${uniqueName}`\n\n    if (this._config.allowDuplicates) {\n      tabId += `-${Math.floor(Math.random() * 1000)}`\n      navId += `-${Math.floor(Math.random() * 1000)}`\n    }\n\n    const newNavItem = `<li class=\"nav-item\"...
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Oct 26 01:49:09 GMT 2024
    - 132.4K bytes
    - Click Count (0)
  3. tests/table_test.go

    			}
    		}
    	})
    }
    
    type mockUniqueNamingStrategy struct {
    	UName string
    	schema.NamingStrategy
    }
    
    func (a mockUniqueNamingStrategy) UniqueName(table, column string) string {
    	return a.UName
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Mon Jul 21 02:46:58 GMT 2025
    - 12.7K bytes
    - Click Count (0)
  4. migrator/migrator.go

    	return m.RunWithValue(value, func(stmt *gorm.Statement) error {
    		// We're currently only receiving boolean values on `Unique` tag,
    		// so the UniqueConstraint name is fixed
    		constraint := m.DB.NamingStrategy.UniqueName(stmt.Table, field.DBName)
    		if unique && !field.Unique {
    			return m.DB.Migrator().DropConstraint(value, constraint)
    		}
    		if !unique && field.Unique {
    			return m.DB.Migrator().CreateConstraint(value, constraint)
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Mar 21 11:49:01 GMT 2026
    - 29.8K bytes
    - Click Count (0)
  5. tests/migrate_test.go

    	// UniqueAffectedByUniqueIndex is true
    	if DB.Dialector.Name() == "mysql" {
    		uniqueConstraintIndex := &migrator.Index{TableName: table, NameValue: DB.Config.NamingStrategy.UniqueName(table, "name"), ColumnList: []string{"name"}, PrimaryKeyValue: sql.NullBool{Bool: false, Valid: true}, UniqueValue: sql.NullBool{Bool: true, Valid: true}}
    		checkNotUnique = func(t *testing.T) {
    			checkColumnType(t, "name", false)
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Mar 21 11:49:01 GMT 2026
    - 66.3K bytes
    - Click Count (0)
Back to Top