-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into issue-289
- Loading branch information
Showing
70 changed files
with
1,038 additions
and
1,061 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
qcfractal/alembic/versions/05ceea11b78a_base_records_msgpack_2.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
"""Msgpack Base Results Phase 2 | ||
Revision ID: 05ceea11b78a | ||
Revises: 8b0cd9accaf2 | ||
Create Date: 2019-08-11 22:30:51.453746 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
import os | ||
import sys | ||
sys.path.insert(1, os.path.dirname(os.path.abspath(__file__))) | ||
from migration_helpers import msgpack_migrations | ||
from qcelemental.util import msgpackext_dumps, msgpackext_loads | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '05ceea11b78a' | ||
down_revision = '8b0cd9accaf2' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
table_name = "base_result" | ||
update_columns = {"extras"} | ||
|
||
nullable = {"extras"} | ||
|
||
|
||
def upgrade(): | ||
msgpack_migrations.json_to_msgpack_table_altercolumns(table_name, update_columns, nullable_true=nullable) | ||
|
||
|
||
def downgrade(): | ||
raise ValueError("Cannot downgrade json to msgpack conversions") |
33 changes: 33 additions & 0 deletions
33
qcfractal/alembic/versions/1134312ad4a3_results_msgpack_2.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
"""Msgpack Results Phase 2 | ||
Revision ID: 1134312ad4a3 | ||
Revises: 84c94a48e491 | ||
Create Date: 2019-08-11 17:21:43.328492 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
import os | ||
import sys | ||
sys.path.insert(1, os.path.dirname(os.path.abspath(__file__))) | ||
from migration_helpers import msgpack_migrations | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '1134312ad4a3' | ||
down_revision = '84c94a48e491' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
table_name = "result" | ||
update_columns = {"return_result"} | ||
|
||
nullable = {"return_result"} | ||
|
||
|
||
def upgrade(): | ||
msgpack_migrations.json_to_msgpack_table_altercolumns(table_name, update_columns, nullable_true=nullable) | ||
|
||
|
||
def downgrade(): | ||
raise ValueError("Cannot downgrade json to msgpack conversions") |
Oops, something went wrong.