migrations

package
v0.0.0-...-70b330c Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DBAddCustomIndexes

func DBAddCustomIndexes(ctx context.Context, db *gorm.DB)

DBAddCustomIndexes allows application to add custom indexes that cannot be added automatically by GORM.

func DBAddDefaultData

func DBAddDefaultData(ctx context.Context, db *gorm.DB)

DBAddDefaultData adds default data.

func DBDropModels

func DBDropModels(ctx context.Context, db *gorm.DB)

DBDropModels drops all tables from DB. Used by tests.

func DBMigrate

func DBMigrate(ctx context.Context, db *gorm.DB)

DBMigrate auto migrates database tables

Types

This section is empty.

Jump to

Keyboard shortcuts

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