New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create file name with UTC time #425

Closed
sqlalchemy-bot opened this Issue Apr 6, 2017 · 11 comments

Comments

Projects
None yet
1 participant
@sqlalchemy-bot

sqlalchemy-bot commented Apr 6, 2017

Migrated issue, originally created by Григорий Крамаренко (@djbaldey)

Now in file_template used local time:

[alemblic]

file_template = %%(year)d%%(month).2d%%(day).2d%%(hour).2d%%(minute).2d_%%(rev)s_%%(slug)s

generated:

migrations/versions/201704070222_f92e230c3c4e_test.py

But it is not convenient for various geographically located developers.
Please add the variables to determine the UTC time in the file names.

@sqlalchemy-bot

This comment has been minimized.

sqlalchemy-bot commented Apr 6, 2017

Changes by Григорий Крамаренко (@djbaldey):

  • edited description
@sqlalchemy-bot

This comment has been minimized.

sqlalchemy-bot commented Apr 6, 2017

Michael Bayer (@zzzeek) wrote:

https://gerrit.sqlalchemy.org/378 , please review, this will add dateutil as a dependency.

@sqlalchemy-bot

This comment has been minimized.

sqlalchemy-bot commented Apr 6, 2017

Changes by Michael Bayer (@zzzeek):

  • added labels: command interface
@sqlalchemy-bot

This comment has been minimized.

sqlalchemy-bot commented Apr 6, 2017

Changes by Michael Bayer (@zzzeek):

  • set milestone to "fasttrack"
@sqlalchemy-bot

This comment has been minimized.

sqlalchemy-bot commented Apr 6, 2017

Григорий Крамаренко (@djbaldey) wrote:

Thank you.

@sqlalchemy-bot

This comment has been minimized.

sqlalchemy-bot commented Apr 6, 2017

Changes by Григорий Крамаренко (@djbaldey):

  • changed status to closed
@sqlalchemy-bot

This comment has been minimized.

sqlalchemy-bot commented Apr 6, 2017

Michael Bayer (@zzzeek) wrote:

the gerrit is not committed yet. it will auto-resolve here.

@sqlalchemy-bot

This comment has been minimized.

sqlalchemy-bot commented Apr 6, 2017

Changes by Michael Bayer (@zzzeek):

  • changed status to reopened
@sqlalchemy-bot

This comment has been minimized.

sqlalchemy-bot commented Apr 6, 2017

Michael Bayer (@zzzeek) wrote:

Add timezone option to config

Using dateutil.tz to link string names to tzinfo objects,
the create_date can now generate using a named timezone
rather than datetime.now().

Change-Id: I9f151cb9e11da3d68be63d7141f60e7eccb9812c
Fixes: #425

fbbb669

@sqlalchemy-bot

This comment has been minimized.

sqlalchemy-bot commented Apr 6, 2017

Changes by Michael Bayer (@zzzeek):

  • changed status to closed
@sqlalchemy-bot

This comment has been minimized.

sqlalchemy-bot commented Apr 6, 2017

Григорий Крамаренко (@djbaldey) wrote:

Great! I dragged your code to my virtualenv...

In GMT+10 generated file:

migrations/versions/201704061845_801a1f08f4be_.py

now is 2017-04-07T04:45:00 in my location

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment