Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for migrate (0.11 sec)

  1. tests/preload_test.go

    			Preloads []*Preload
    			Join     Join
    			ValueID  uint
    		}
    		Value struct {
    			ID     uint
    			Name   string
    			Nested Nested
    		}
    	)
    
    	DB.Migrator().DropTable(&Preload{}, &Join{}, &Nested{}, &Value{})
    	DB.Migrator().AutoMigrate(&Preload{}, &Join{}, &Nested{}, &Value{})
    
    	value1 := Value{
    		Name: "value",
    		Nested: Nested{
    			Preloads: []*Preload{
    				{Value: "p1"}, {Value: "p2"},
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:00:47 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  2. hack/unwanted-dependencies.json

          "github.com/mitchellh/gox": "MPL license not in CNCF allowlist",
          "github.com/mndrix/tap-go": "unmaintained",
          "github.com/onsi/ginkgo": "Ginkgo has been migrated to V2, refer to #109111",
          "github.com/pkg/errors": "unmaintained, archive mode",
          "github.com/smartystreets/goconvey": "MPL license not in CNCF allowlist",
          "github.com/spf13/viper": "refer to #102598",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 13 12:31:38 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  3. tests/joins_test.go

    			CompanyID  *uint
    			Company    Company
    		}
    
    		Building struct {
    			gorm.Model
    			Name    string
    			OwnerID *uint
    			Owner   Owner
    		}
    	)
    
    	DB.Migrator().DropTable(&Building{}, &Owner{}, &Furniture{})
    	DB.Migrator().AutoMigrate(&Building{}, &Owner{}, &Furniture{})
    
    	home := &Building{Name: "relation_empty"}
    	DB.Create(home)
    
    	var entries []Building
    	assert.NotPanics(t, func() {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:52:33 UTC 2024
    - 15K bytes
    - Viewed (0)
  4. docs/en/data/external_links.yml

    https://qiita.com/mtitg/items/47770e9a562dd150631d title: FastAPI|DB接続してCRUDするPython製APIサーバーを構築 Portuguese: - author: Jessica Temporal author_link: https://jtemporal.com/socials link: https://jtemporal.com/dicas-para-migrar-de-flask-para-fastapi-e-vice-versa/ title: Dicas para migrar uma aplicação de Flask para FastAPI e vice-versa Russian: - author: Troy Köhler author_link: https://www.linkedin.com/in/trkohler/ link: https://trkohler.com/fast-api-introduction-to-framework title: 'FastAPI: знакомимся...
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Jun 12 00:47:57 UTC 2024
    - 22K bytes
    - Viewed (0)
  5. tests/associations_has_many_test.go

    	}
    	type Item struct {
    		gorm.Model
    		Logo     string        `gorm:"not null;type:varchar(50)"`
    		Contents []ItemContent `gorm:"foreignKey:ItemID"`
    	}
    
    	tx := DB.Session(&gorm.Session{})
    	tx.Migrator().DropTable(&ItemContent{}, &Item{})
    	tx.AutoMigrate(&ItemContent{}, &Item{})
    
    	item := Item{
    		Logo: "logo",
    		Contents: []ItemContent{
    			{Name: "name", LanguageCode: "en"},
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:49:45 UTC 2024
    - 16K bytes
    - Viewed (0)
Back to top