basic

command module
v0.0.0-...-ae50a49 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2026 License: MIT Imports: 9 Imported by: 0

README

Migris Example

This is a basic example of using Migris for database migrations in Go.

go build -o migris
$ ./migris 
NAME:
   migrate - Migration tool

USAGE:
   migrate [global options] [command [command options]]

COMMANDS:
   create   Create a new migration file
   up       Run all pending migrations
   reset    Rollback all migrations
   down     Rollback the last migration
   status   Show the status of migrations
   help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h  show help
$ ./migris status
20250904164848_create_users_table.go ................................... Pending
20250904165150_create_posts_table.go ................................... Pending
20250904165317_create_comments_table.go ................................ Pending
20250904165421_insert_data.go .......................................... Pending

$ ./migris up
 INFO  Running migrations.

20250904164848_create_users_table.go ............................... 9.24ms DONE
20250904165150_create_posts_table.go ............................... 6.59ms DONE
20250904165317_create_comments_table.go ............................ 6.90ms DONE
20250904165421_insert_data.go ...................................... 3.10ms DONE

$ ./migris status
20250904164848_create_users_table.go ................................... Applied
20250904165150_create_posts_table.go ................................... Applied
20250904165317_create_comments_table.go ................................ Applied
20250904165421_insert_data.go .......................................... Applied

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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