migrate

package
v1.6.34 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package migrate to migrate the schema for the example application

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DropAllTables

func DropAllTables() error

DropAllTables - careful! It will drop all the tables!

func SetPkFk

func SetPkFk() error

SetPkFk - manually set foreign key for MySQL and PostgreSQL

func StartMigration

func StartMigration(configure gconfig.Configuration) error

StartMigration - automatically migrate all the tables

- Only create tables with missing columns and missing indexes - Will not change/delete any existing columns and their types

Types

This section is empty.

Jump to

Keyboard shortcuts

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