Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for addColumns (0.19 sec)

  1. pkg/controller/volume/attachdetach/util/util.go

    		return false
    	}
    	return defaultAction
    }
    
    // ProcessPodVolumes processes the volumes in the given pod and adds them to the
    // desired state of the world if addVolumes is true, otherwise it removes them.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 10:42:15 UTC 2024
    - 12K bytes
    - Viewed (0)
  2. migrator.go

    	HasTable(dst interface{}) bool
    	RenameTable(oldName, newName interface{}) error
    	GetTables() (tableList []string, err error)
    	TableType(dst interface{}) (TableType, error)
    
    	// Columns
    	AddColumn(dst interface{}, field string) error
    	DropColumn(dst interface{}, field string) error
    	AlterColumn(dst interface{}, field string) error
    	MigrateColumn(dst interface{}, field *schema.Field, columnType ColumnType) error
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Oct 30 09:15:49 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  3. src/internal/trace/traceviewer/mmu.go

            curve = plotData.curve;
            var data = new google.visualization.DataTable();
            data.addColumn('number', 'Window duration');
            data.addColumn('number', 'Minimum mutator utilization');
            if (plotData.quantiles) {
              for (var i = 1; i < plotData.quantiles.length; i++) {
                data.addColumn('number', niceQuantile(1 - plotData.quantiles[i]) + ' MU');
              }
            }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 21:29:53 UTC 2023
    - 13K bytes
    - Viewed (0)
  4. pkg/controller/volume/attachdetach/attach_detach_controller.go

    		return
    	}
    
    	volumeActionFlag := util.DetermineVolumeAction(
    		pod,
    		adc.desiredStateOfWorld,
    		true /* default volume action */)
    
    	util.ProcessPodVolumes(logger, pod, volumeActionFlag, /* addVolumes */
    		adc.desiredStateOfWorld, &adc.volumePluginMgr, adc.pvcLister, adc.pvLister, adc.csiMigratedPluginManager, adc.intreeToCSITranslator)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 32.6K bytes
    - Viewed (0)
  5. migrator/migrator.go

    			newTable = m.CurrentTable(stmt)
    		} else {
    			return err
    		}
    	}
    
    	return m.DB.Exec("ALTER TABLE ? RENAME TO ?", oldTable, newTable).Error
    }
    
    // AddColumn create `name` column for value
    func (m Migrator) AddColumn(value interface{}, name string) error {
    	return m.RunWithValue(value, func(stmt *gorm.Statement) error {
    		// avoid using the same name field
    		if stmt.Schema == nil {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Apr 26 07:15:49 UTC 2024
    - 29K bytes
    - Viewed (0)
  6. tests/migrate_test.go

    						columnType)
    				}
    			}
    		}
    	}
    
    	type NewColumnStruct struct {
    		gorm.Model
    		Name    string
    		NewName string
    	}
    
    	if err := DB.Table("column_structs").Migrator().AddColumn(&NewColumnStruct{}, "NewName"); err != nil {
    		t.Fatalf("Failed to add column, got %v", err)
    	}
    
    	if !DB.Table("column_structs").Migrator().HasColumn(&NewColumnStruct{}, "NewName") {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Mar 18 11:24:16 UTC 2024
    - 56.2K bytes
    - Viewed (0)
  7. pkg/controller/volume/persistentvolume/framework_test.go

    			if metav1.HasAnnotation(volume.ObjectMeta, annSkipLocalStore) {
    				continue
    			}
    			ctrl.volumes.store.Add(volume)
    		}
    		reactor.AddClaims(test.initialClaims)
    		reactor.AddVolumes(test.initialVolumes)
    
    		// Inject classes into controller via a custom lister.
    		indexer := cache.NewIndexer(cache.MetaNamespaceKeyFunc, cache.Indexers{})
    		for _, class := range storageClasses {
    			indexer.Add(class)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 09:54:00 UTC 2023
    - 38.3K bytes
    - Viewed (0)
Back to top