Documentation ¶
Index ¶
- func Get202009171251() *migrate.Migration
- func Get202010071530() *migrate.Migration
- func Get202010221010() *migrate.Migration
- func Get202012041103() *migrate.Migration
- func Get202012091055() *migrate.Migration
- func Get2020121691335() *migrate.Migration
- func GetMigrations() *migrate.MemoryMigrationSource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get202009171251 ¶
func Get202010071530 ¶ added in v0.3.0
func Get202010221010 ¶
func Get202012041103 ¶ added in v0.3.0
func Get202012091055 ¶ added in v0.3.0
func Get2020121691335 ¶ added in v0.3.0
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.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.