migration1586871710

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2021 License: ISC 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 converts all 32-bit primary keys into 64 bit integers. In the (hopefully likely!) scenario that Seerlink is around for a long time, it's actually possible we might experience ID wraparounds. If a node processes more than 2.147B jobs it could have undefined behaviour. This is not strictly necessary for small tables e.g. configurations, but the cost is small and for consistency it is simply easier to use 64-bit integers as ID everywhere.

Types

This section is empty.

Jump to

Keyboard shortcuts

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