migration

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get202009171251

func Get202009171251() *migrate.Migration

func Get202010071530 added in v0.3.0

func Get202010071530() *migrate.Migration

func Get202010221010

func Get202010221010() *migrate.Migration

func Get202012041103 added in v0.3.0

func Get202012041103() *migrate.Migration

func Get202012091055 added in v0.3.0

func Get202012091055() *migrate.Migration

func Get2020121691335 added in v0.3.0

func Get2020121691335() *migrate.Migration

Get2020121691335 updates the primary key on events table.

Fixes: https://github.com/tinkerbell/tink/issues/379

We can have multiple events generated at a given time, therefore the value of 'created_at' field will be same for each event. This violates the unique constraint on "events_pkey", when these events are add to the events table.

The migration changes the primary key on events table from 'created_at' to `id`, which will always be unique for each event generated at any point in time.

func GetMigrations

func GetMigrations() *migrate.MemoryMigrationSource

Types

This section is empty.

Jump to

Keyboard shortcuts

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