#migration #sql-migration #unix-timestamp #generating #file #time #cli

app grate

a simple cli for generating migration files prefixed with unix time

3 unstable releases

0.2.0 Mar 18, 2023
0.1.1 Mar 15, 2023
0.1.0 Mar 15, 2023

#2565 in Database interfaces

MIT license

5KB

grate

A simple sql migrations file gen tool

example

grate --name party --path migrations
 created ./migrations/1678912821_party.up.sql
 created ./migrations/1678912821_party.down.sql

params

name - required. the name of the migration, will be appended to the file name after the timestamp. path - optional. defaults to ./migrations. will generate a new directory if non exists.

Dependencies

~1.2–1.8MB
~35K SLoC