Skip to content

Commit

Permalink
Merge ac2586b into 52114f5
Browse files Browse the repository at this point in the history
  • Loading branch information
bcmackintosh committed Oct 20, 2016
2 parents 52114f5 + ac2586b commit 39264cc
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions agnostic/__init__.py
Expand Up @@ -9,12 +9,16 @@
)


# Different databases treat timestamp columns differently, e.g. MySQL will
# automatically coerce `null` to `now()``! To be defensive, we explicitly
# include the `NULL DEFAULT NULL` for nullable fields, even though it might
# be redundant in ANSI SQL.
MIGRATION_TABLE_SQL = '''
CREATE TABLE agnostic_migrations (
name VARCHAR(255) PRIMARY KEY,
status VARCHAR(255),
started_at TIMESTAMP,
completed_at TIMESTAMP
status VARCHAR(255) NULL DEFAULT NULL,
started_at TIMESTAMP NULL DEFAULT NULL,
completed_at TIMESTAMP NULL DEFAULT NULL
)
'''

Expand Down

0 comments on commit 39264cc

Please sign in to comment.