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 ¶
Source Files ¶
- 000_all.go
- 20220329122401_customers_employee_create_table.go
- 20220329122459_customers_employee_update_columns.go
- 20220329122659_customers_employee_alter_column_datatype.go
- 20220329123813_customers_employee_add_not_null_column.go
- 20220329123903_customers_employee_alter_primary_key.go
- 20230518180017_customers_employee_delete_date_of_joining.go
- queries.go
Click to show internal directories.
Click to hide internal directories.