Skip to content
This repository has been archived by the owner on Jun 28, 2018. It is now read-only.

add option to choose a timestamp format for migration files in CLI #329

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alex-bogomolov
Copy link

Currently the Unix timestamp is the only option while generating migration files. This PR adds an option to choose a datetime format for the migration timestamp.

I have added the -timestamp option for create action:

migrate create -timestamp time migration_name

For example, for Jan 18th 2018, 18:19:03 the datetime migration timestamp will be 180117181903, while the standard Unix timestamp will be 1516205943.

In some cases, datetime timestamps are more convenient to work with. If -timestamp flag is not supplied, the default Unix timestamp will be used.

@alex-bogomolov alex-bogomolov changed the title add option to choose a timestamp format for migration files add option to choose a timestamp format for migration files in CLI Jan 17, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant