- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 62 for migrated (0.05 seconds)
-
architecture/standards/0002-avoid-using-java-serialization.md
## Consequences * The configuration cache serialization infrastructure should be used for all serialization. * Existing usages of Serializer outside of this infrastructure should be migrated to use it. * Existing usages of Java serialization should be migrated to use it. * It is ok for Serializer to be used as a replacement for Java serialization as a migration step.
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Thu Mar 05 14:05:45 GMT 2026 - 2.3K bytes - Click Count (0) -
ci/official/requirements_updater/BUILD.bazel
load("@python_version_repo//:py_version.bzl", "REQUIREMENTS") load("@rules_python//python:pip.bzl", "compile_pip_requirements") # TODO(ybaturina): Remove once TF is migrated to CUDA 12.9. genrule( name = "nvidia_constraints", srcs = ["nvidia-requirements.txt"], outs = ["nvidia-constraints.txt"], cmd = """sed -E "s/>=/==/" $(location nvidia-requirements.txt) > $@;""", )Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Mon Mar 23 11:18:56 GMT 2026 - 1.4K bytes - Click Count (0) -
migrator.go
package gorm import ( "reflect" "gorm.io/gorm/clause" "gorm.io/gorm/schema" ) // Migrator returns migrator func (db *DB) Migrator() Migrator { tx := db.getInstance() // apply scopes to migrator for len(tx.Statement.scopes) > 0 { tx = tx.executeScopes() } return tx.Dialector.Migrator(tx.Session(&Session{})) } // AutoMigrate run auto migration for given models
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Mon Oct 30 09:15:49 GMT 2023 - 3.1K bytes - Click Count (0) -
tests/embedded_struct_test.go
ImageUrl string } DB.Migrator().DropTable(&HNPost{}, &EngadgetPost{}) if err := DB.Migrator().AutoMigrate(&HNPost{}, &EngadgetPost{}); err != nil { t.Fatalf("failed to auto migrate, got error: %v", err) } for _, name := range []string{"author_id", "author_name", "author_email"} { if !DB.Migrator().HasColumn(&EngadgetPost{}, name) { t.Errorf("should has prefixed column %v", name)
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Wed May 08 04:07:58 GMT 2024 - 7.3K bytes - Click Count (0) -
tests/serializer_test.go
} func TestSerializer(t *testing.T) { schema.RegisterSerializer("custom", NewCustomSerializer("hello")) DB.Migrator().DropTable(adaptorSerializerModel(&SerializerStruct{})) if err := DB.Migrator().AutoMigrate(adaptorSerializerModel(&SerializerStruct{})); err != nil { t.Fatalf("no error should happen when migrate scanner, valuer struct, got error %v", err) } createdAt := time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC)
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sat Nov 22 03:14:36 GMT 2025 - 9.3K bytes - Click Count (0) -
docs/en/docs/how-to/migrate-from-pydantic-v1-to-pydantic-v2.md
# Migrate from Pydantic v1 to Pydantic v2 { #migrate-from-pydantic-v1-to-pydantic-v2 } If you have an old FastAPI app, you might be using Pydantic version 1. FastAPI version 0.100.0 had support for either Pydantic v1 or v2. It would use whichever you had installed. FastAPI version 0.119.0 introduced partial support for Pydantic v1 from inside of Pydantic v2 (as `pydantic.v1`), to facilitate the migration to v2.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 5.4K bytes - Click Count (0) -
tests/postgres_test.go
} if err := DB.Exec("CREATE EXTENSION IF NOT EXISTS pgcrypto;").Error; err != nil { t.Errorf("Failed to create extension pgcrypto, got error %v", err) } DB.Migrator().DropTable(&Yasuo{}) if err := DB.AutoMigrate(&Yasuo{}); err != nil { t.Fatalf("Failed to migrate for uuid default value, got error: %v", err) } yasuo := Yasuo{Name: "jinzhu"} if err := DB.Create(&yasuo).Error; err != nil {
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sat Oct 08 09:16:32 GMT 2022 - 6.4K bytes - Click Count (0) -
tests/gaussdb_test.go
} if err := DB.Exec("CREATE EXTENSION IF NOT EXISTS pgcrypto;").Error; err != nil { t.Errorf("Failed to create extension pgcrypto, got error %v", err) } DB.Migrator().DropTable(&Yasuo{}) if err := DB.AutoMigrate(&Yasuo{}); err != nil { t.Fatalf("Failed to migrate for uuid default value, got error: %v", err) } yasuo := Yasuo{Name: "jinzhu"} if err := DB.Create(&yasuo).Error; err != nil {
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Mon Jul 21 02:46:58 GMT 2025 - 6.6K bytes - Click Count (0) -
tests/update_has_one_test.go
Account CustomizeAccount `gorm:"foreignkey:UserID"` } DB.Migrator().DropTable(&CustomizeUser{}) DB.Migrator().DropTable(&CustomizeAccount{}) if err := DB.AutoMigrate(&CustomizeUser{}); err != nil { t.Fatalf("failed to migrate, got error: %v", err) } if err := DB.AutoMigrate(&CustomizeAccount{}); err != nil { t.Fatalf("failed to migrate, got error: %v", err) } number := "number-has-one-associations"
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Thu Jul 14 06:55:54 GMT 2022 - 3.6K bytes - Click Count (0) -
docs/zh-hant/docs/how-to/migrate-from-pydantic-v1-to-pydantic-v2.md
# 從 Pydantic v1 遷移到 Pydantic v2 { #migrate-from-pydantic-v1-to-pydantic-v2 } 如果你有一個舊的 FastAPI 應用,可能正在使用 Pydantic 1 版。 FastAPI 0.100.0 同時支援 Pydantic v1 或 v2,會使用你已安裝的那個版本。 FastAPI 0.119.0 透過 Pydantic v2 內的 `pydantic.v1` 提供對 Pydantic v1 的部分支援,以便遷移到 v2。 FastAPI 0.126.0 移除了對 Pydantic v1 的支援,但在一段時間內仍支援 `pydantic.v1`。 /// warning Pydantic 團隊自 **Python 3.14** 起,已停止在最新的 Python 版本中支援 Pydantic v1。 這也包含 `pydantic.v1`,在 Python 3.14 及以上版本不再支援。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 4.9K bytes - Click Count (0)