migrations

package
v0.0.0-...-7b45942 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateCategoryCollection

type CreateCategoryCollection struct{}

Create the category collection.

func (*CreateCategoryCollection) Down

func (m *CreateCategoryCollection) Down(ctx context.Context, dbConn *mongo.Database) (err error)

func (*CreateCategoryCollection) Name

func (m *CreateCategoryCollection) Name() (collectionName string)

func (*CreateCategoryCollection) Up

func (m *CreateCategoryCollection) Up(ctx context.Context, dbConn *mongo.Database) (err error)

type CreateCommentsCollection

type CreateCommentsCollection struct{}

Create the comments collection.

func (*CreateCommentsCollection) Down

func (m *CreateCommentsCollection) Down(ctx context.Context, dbConn *mongo.Database) (err error)

func (*CreateCommentsCollection) Name

func (m *CreateCommentsCollection) Name() (collectionName string)

func (*CreateCommentsCollection) Up

func (m *CreateCommentsCollection) Up(ctx context.Context, dbConn *mongo.Database) (err error)

type CreateNotificationCollection

type CreateNotificationCollection struct{}

Create the notification collection.

func (*CreateNotificationCollection) Down

func (m *CreateNotificationCollection) Down(ctx context.Context, dbConn *mongo.Database) (err error)

func (*CreateNotificationCollection) Name

func (m *CreateNotificationCollection) Name() (collectionName string)

func (*CreateNotificationCollection) Up

func (m *CreateNotificationCollection) Up(ctx context.Context, dbConn *mongo.Database) (err error)

type CreatePagesCollection

type CreatePagesCollection struct{}

Create the page collection.

func (*CreatePagesCollection) Down

func (m *CreatePagesCollection) Down(ctx context.Context, dbConn *mongo.Database) (err error)

func (*CreatePagesCollection) Name

func (m *CreatePagesCollection) Name() (collectionName string)

func (*CreatePagesCollection) Up

func (m *CreatePagesCollection) Up(ctx context.Context, dbConn *mongo.Database) (err error)

type CreatePostsCollection

type CreatePostsCollection struct{}

Create the posts collection.

func (*CreatePostsCollection) Down

func (m *CreatePostsCollection) Down(ctx context.Context, dbConn *mongo.Database) (err error)

func (*CreatePostsCollection) Name

func (m *CreatePostsCollection) Name() (collectionName string)

func (*CreatePostsCollection) Up

func (m *CreatePostsCollection) Up(ctx context.Context, dbConn *mongo.Database) (err error)

type CreateRevokedTokenCollection

type CreateRevokedTokenCollection struct{}

Create the revoke token collection.

func (*CreateRevokedTokenCollection) Down

func (m *CreateRevokedTokenCollection) Down(ctx context.Context, dbConn *mongo.Database) (err error)

func (*CreateRevokedTokenCollection) Name

func (m *CreateRevokedTokenCollection) Name() (collectionName string)

func (*CreateRevokedTokenCollection) Up

func (m *CreateRevokedTokenCollection) Up(ctx context.Context, dbConn *mongo.Database) (err error)

type CreateUsersCollection

type CreateUsersCollection struct{}

Create the users collection. Insert super admin record data.

func (*CreateUsersCollection) Down

func (m *CreateUsersCollection) Down(ctx context.Context, dbConn *mongo.Database) (err error)

func (*CreateUsersCollection) Name

func (m *CreateUsersCollection) Name() (collectionName string)

func (*CreateUsersCollection) Up

func (m *CreateUsersCollection) Up(ctx context.Context, dbConn *mongo.Database) (err error)

Jump to

Keyboard shortcuts

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