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.
Click to show internal directories.
Click to hide internal directories.