migration1586949323

package
v0.8.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Migrate

func Migrate(tx *gorm.DB) error

Migrate makes txes.hash a unique index Due to faulty logic, there are some duplicates out in the wild (even though this should never happen). In the case of duplicate hashes, we keep the earliest row for each hash (by ID) and delete all other duplicate rows. Foreign key cascades will also cause all related tx_attempts to be deleted as well.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL