Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 126 for migrate (0.28 sec)

  1. cluster/images/etcd/Makefile

    RUNNERIMAGE := ${RUNNERIMAGE.${OS}}
    
    QEMUVERSION?=5.2.0-2
    
    build:
    	# Explicitly copy files to the temp directory
    	$(BIN_INSTALL) migrate-if-needed.sh $(TEMP_DIR)
    	$(BIN_INSTALL) migrate-if-needed.bat $(TEMP_DIR)
    	install $(DOCKERFILE) $(TEMP_DIR)
    
    	# Compile migrate
    	migrate_tmp_dir=$(shell mktemp -d); \
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 16:13:15 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  2. tests/associations_test.go

    		t.Fatalf("Failed to set up join table, got error: %s", err)
    	}
    	if err := DB.Migrator().DropTable(&Organization{}, &Region{}); err != nil {
    		t.Fatalf("Failed to migrate, got error: %s", err)
    	}
    	if err := DB.AutoMigrate(&Organization{}, &Region{}); err != nil {
    		t.Fatalf("Failed to migrate, got error: %v", err)
    	}
    	region := &Region{Name: "Region1"}
    	if err := DB.Create(region).Error; err != nil {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Feb 08 08:29:09 UTC 2023
    - 10.9K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/phases/addons/dns/dns.go

    	// Since the current configuration present is not the default version, try and migrate it.
    	updatedCorefile, err := migration.Migrate(currentInstalledCoreDNSVersion, strings.TrimLeft(kubeadmconstants.CoreDNSVersion, "v"), corefile, false)
    	if err != nil {
    		return errors.Wrap(err, "unable to migrate CoreDNS ConfigMap")
    	}
    
    	// Take a copy of the existing Corefile data as `Corefile-backup` and update the ConfigMap
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 10:21:20 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/util/config/common.go

    	}
    
    	if _, present := deprecatedAPIVersions[gvString]; present && !allowDeprecated {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 11:04:08 UTC 2024
    - 18.1K bytes
    - Viewed (0)
  5. cmd/format-erasure.go

    	if err := json.Unmarshal(b, format); err != nil {
    		return "", err
    	}
    	return format.Erasure.Version, nil
    }
    
    // Migrates all previous versions to latest version of `format.json`,
    // this code calls migration in sequence, such as V1 is migrated to V2
    // first before it V2 migrates to V3.n
    func formatErasureMigrate(export string) ([]byte, fs.FileInfo, error) {
    	formatPath := pathJoin(export, minioMetaBucket, formatConfigFile)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/docs/userguide/releases/migrating/migrating_from_ant.adoc

    +
    Follow the advice in the rest of this guide to migrate individual project builds.
    As mentioned, you should use Gradle standard plugins where possible.
    This may mean that you need to add an extra copy task to each build that copies the generated artifacts to the location expected by the rest of the Ant builds.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Mar 23 22:37:03 UTC 2024
    - 37.7K bytes
    - Viewed (0)
  7. tests/multi_primary_keys_test.go

    		stmt.Schema.LookUpField("ID").Unique = true
    		// postgers only allow unique constraint matching given keys
    	}
    
    	DB.Migrator().DropTable(&Blog{}, &Tag{}, "blog_tags", "locale_blog_tags", "shared_blog_tags")
    	if err := DB.AutoMigrate(&Blog{}, &Tag{}); err != nil {
    		t.Fatalf("Failed to auto migrate, got error: %v", err)
    	}
    
    	blog := Blog{
    		Locale:  "ZH",
    		Subject: "subject",
    		Body:    "body",
    		Tags: []Tag{
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Thu Jan 06 07:02:53 UTC 2022
    - 12.8K bytes
    - Viewed (0)
  8. tests/scanner_valuer_test.go

    	"time"
    
    	"gorm.io/gorm"
    	"gorm.io/gorm/clause"
    	. "gorm.io/gorm/utils/tests"
    )
    
    func TestScannerValuer(t *testing.T) {
    	DB.Migrator().DropTable(&ScannerValuerStruct{})
    	if err := DB.Migrator().AutoMigrate(&ScannerValuerStruct{}); err != nil {
    		t.Fatalf("no error should happen when migrate scanner, valuer struct, got error %v", err)
    	}
    
    	data := ScannerValuerStruct{
    		Name:     sql.NullString{String: "name", Valid: true},
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 07 07:02:07 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/docs/userguide/authoring-builds/tasks/task_configuration_avoidance.adoc

    The first part of the migration process is to go through the code and manually migrate eager task creation and configuration to use configuration avoidance APIs.
    
    1. **Migrate task configuration that affects all tasks (`tasks.all {}`) or subsets by type (`tasks.withType(...) {}`).** +
    This will cause your build to eagerly create fewer tasks that are registered by plugins.
    
    2. **Migrate tasks configured by name.** +
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 27 23:45:25 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  10. migrator/migrator.go

    		).Error
    	})
    }
    
    // MigrateColumn migrate column
    func (m Migrator) MigrateColumn(value interface{}, field *schema.Field, columnType gorm.ColumnType) error {
    	if field.IgnoreMigration {
    		return nil
    	}
    
    	// found, smart migrate
    	fullDataType := strings.TrimSpace(strings.ToLower(m.DB.Migrator().FullDataTypeOf(field).SQL))
    	realDataType := strings.ToLower(columnType.DatabaseTypeName())
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Apr 26 07:15:49 UTC 2024
    - 29K bytes
    - Viewed (0)
Back to top