Commit 39666398 authored by sim's avatar sim

[DB] Put a timezone on

parent bb4ef9b8
"""Put a timezone on
Revision ID: 08230100f262
Revises: 601e9d9baa4c
Create Date: 2017-07-06 13:47:10.788569
from alembic import op
import sqlalchemy as sa
import gargantext
# revision identifiers, used by Alembic.
revision = '08230100f262'
down_revision = '601e9d9baa4c'
branch_labels = None
depends_on = None
def upgrade():
op.alter_column('nodes', 'date', type_=sa.DateTime(timezone=True))
def downgrade():
op.alter_column('nodes', 'date', type_=sa.DateTime(timezone=False))
......@@ -64,7 +64,7 @@ class Node(Base):
parent_id = Column(Integer, ForeignKey('', ondelete='CASCADE'))
# main data
name = Column(String(255))
date = Column(DateTime(),
date = Column(DateTime(timezone=True),
# metadata (see
hyperdata = Column(JSONB, default=dict)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment