constants

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2018 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const MigrationExample = "" +
	"-- +migrate Up\n" +
	"-- SQL in section 'Up' is executed when this migration is applied.\n" +
	"CREATE TABLE `examples` (\n" +
	"  `id` bigint(11) UNSIGNED NOT NULL AUTO_INCREMENT,\n" +
	"  PRIMARY KEY (`id`)\n" +
	")\n" +
	"  ENGINE = InnoDB\n" +
	"  AUTO_INCREMENT = 10000\n" +
	"  DEFAULT CHARSET = utf8;\n" +
	"\n" +
	"-- +migrate Down\n" +
	"-- SQL section 'Down' is executed when this migration is rolled back.\n" +
	"DROP TABLE `examples`;\n"

MigrationExample is the example migration file.

View Source
const Name = "database-migrator"

Name is the application name.

View Source
const Version = "0.1.0"

Version is the application version.

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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