Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for UniqueName (0.04 sec)

  1. 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\"...
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Oct 26 01:49:09 UTC 2024
    - 132.4K bytes
    - Viewed (0)
  2. tests/table_test.go

    			}
    		}
    	})
    }
    
    type mockUniqueNamingStrategy struct {
    	UName string
    	schema.NamingStrategy
    }
    
    func (a mockUniqueNamingStrategy) UniqueName(table, column string) string {
    	return a.UName
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Mon Jul 21 02:46:58 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  3. 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)
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Fri Jun 06 02:35:01 UTC 2025
    - 29.5K bytes
    - Viewed (0)
  4. 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)
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Wed Aug 20 04:51:17 UTC 2025
    - 65.2K bytes
    - Viewed (0)
Back to top