migrations

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

This is auto-generated file using 'gofr migrate' tool. DO NOT EDIT.

Index

Constants

View Source
const (
	CreateTable = "CREATE TABLE IF NOT EXISTS customers" +
		" (id varchar(36) PRIMARY KEY , name varchar(50) , email varchar(50) , phone bigint);"
	DroopTable          = "Drop table If EXISTS customers"
	AddCountry          = "ALTER TABLE customers ADD COLUMN country varchar(20);"
	DropCountry         = "ALTER TABLE customers DROP COLUMN country;"
	DropPhone           = "ALTER TABLE customers DROP COLUMN phone"
	AddPhone            = "ALTER TABLE customers ADD COLUMN phone bigint;"
	AlterType           = "ALTER TABLE customers ALTER COLUMN name TYPE TEXT;"
	ResetType           = "ALTER TABLE customers ALTER COLUMN name TYPE varchar(5);"
	AddNotNullColumn    = "ALTER TABLE customers ADD COLUMN date_of_joining DATE NOT NULL DEFAULT CURRENT_DATE;"
	DeleteNotNullColumn = "ALTER TABLE customers DROP COLUMN date_of_joining;"
	AlterPrimaryKey     = "ALTER TABLE customers ALTER COLUMN id SET DATA TYPE TEXT USING id::TEXT;"
	ResetPrimaryKey     = "ALTER TABLE customers ALTER COLUMN id SET DATA TYPE varchar(36) USING id::varchar(36)"
)

Variables

This section is empty.

Functions

func All

func All() map[string]dbmigration.Migrator

Types

type K20220329122401

type K20220329122401 struct {
}

func (K20220329122401) Down

func (k K20220329122401) Down(d *datastore.DataStore, logger log.Logger) error

func (K20220329122401) Up

type K20220329122459

type K20220329122459 struct {
}

func (K20220329122459) Down

func (k K20220329122459) Down(d *datastore.DataStore, logger log.Logger) error

func (K20220329122459) Up

type K20220329122659

type K20220329122659 struct {
}

func (K20220329122659) Down

func (k K20220329122659) Down(d *datastore.DataStore, logger log.Logger) error

func (K20220329122659) Up

type K20220329123813

type K20220329123813 struct {
}

func (K20220329123813) Down

func (k K20220329123813) Down(d *datastore.DataStore, logger log.Logger) error

func (K20220329123813) Up

type K20220329123903

type K20220329123903 struct {
}

func (K20220329123903) Down

func (k K20220329123903) Down(d *datastore.DataStore, logger log.Logger) error

func (K20220329123903) Up

type K20230518180017

type K20230518180017 struct {
}

func (K20230518180017) Down

func (k K20230518180017) Down(d *datastore.DataStore, logger log.Logger) error

func (K20230518180017) Up

Jump to

Keyboard shortcuts

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