migrations

package
v0.0.0-...-9b02830 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MIGRATION_EXISTS        = `select * from gapi_migrations where rownum = 1`
	MIGRATION_ALREADY_RUN   = `select COUNT(*) from gapi_migrations where id = :id`
	CREATE_MIGRATIONS_TABLE = `create table gapi_migrations (
		id VARCHAR2(255),
		created_at DATE DEFAULT (sysdate)
	)`
	ADD_RUN_MIGRATION = `insert into gapi_migrations(id, created_at) values (:id, DEFAULT)`
)
View Source
const RUN_MIGRATION_ENV_VAR = "RUN_MIGRATIONS"

Variables

This section is empty.

Functions

func MigrateOracle

func MigrateOracle(connectionString string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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