Back to godoc.org
github.com/smartcontractkit/chainlink/core/store/migrations/migration1560924400

package migration1560924400

v0.8.5
Latest Go to latest
Published: 3 days ago | License: MIT | Module: github.com/smartcontractkit/chainlink

Index

func Migrate

func Migrate(tx *gorm.DB) error

Migrate adds the BlockHash column to the RunRequest and TxReceipt tables

type RunRequest

type RunRequest struct {
	ID        uint `gorm:"primary_key"`
	RequestID *string
	TxHash    *common.Hash
	BlockHash *common.Hash
	Requester *common.Address
	CreatedAt time.Time
}

RunRequest stores the fields used to initiate the parent job run. This migration introduces the BlockHash column onto the table.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
f or F : Jump to identifier