migrations

package
v0.0.0-...-0406d23 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoMigrate

func AutoMigrate() error

Types

type Board

type Board struct {
	Database *mongo.Database
	Model    *model.Board
}

func (*Board) Migrate

func (m *Board) Migrate() error

Create mongo collection

type Collaborator

type Collaborator struct {
	Database *mongo.Database
	Model    *model.Collaborator
}

func (*Collaborator) Migrate

func (m *Collaborator) Migrate() error

Create mongo collection

type Goal

type Goal struct {
	Database *mongo.Database
	Model    *model.Goal
}

func (*Goal) Migrate

func (m *Goal) Migrate() error

Create mongo collection

type List

type List struct {
	Database *mongo.Database
	Model    *model.List
}

func (*List) Migrate

func (m *List) Migrate() error

Create mongo collection

type Migrator

type Migrator interface {
	Migrate() error
}

type Phase

type Phase struct {
	Database *mongo.Database
	Model    *model.Phase
}

func (*Phase) Migrate

func (m *Phase) Migrate() error

Create mongo collection

type Portfolio

type Portfolio struct {
	Database *mongo.Database
	Model    *model.Portfolio
}

func (*Portfolio) Migrate

func (m *Portfolio) Migrate() error

Create mongo collection

type Task

type Task struct {
	Database *mongo.Database
	Model    *model.Task
}

func (*Task) Migrate

func (m *Task) Migrate() error

Create mongo collection

Jump to

Keyboard shortcuts

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