Skip to content

Commit

Permalink
Merge pull request #2901 from SEED-platform/fix/seeduser-json-col-types
Browse files Browse the repository at this point in the history
fix: alter seeduser json columns to jsonb type
  • Loading branch information
nllong authored Sep 24, 2021
2 parents d12953d + 207017b commit 6247533
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
15 changes: 15 additions & 0 deletions seed/migrations/0151_seeduser_20210923_1337.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Manually created on 2021-09-23

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('seed', '0150_auto_20210922_1909'),
]

operations = [
migrations.RunSQL('ALTER TABLE "landing_seeduser" ALTER COLUMN "default_custom_columns" TYPE jsonb;'),
migrations.RunSQL('ALTER TABLE "landing_seeduser" ALTER COLUMN "default_building_detail_custom_columns" TYPE jsonb;'),
]
4 changes: 4 additions & 0 deletions seed/tests/test_analysis_pipelines.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import json
import logging
from os import path
from unittest.case import skip
from unittest.mock import patch
from zipfile import ZipFile
from lxml import etree
Expand Down Expand Up @@ -613,6 +614,9 @@ def _mock_request(file_, model_type):

return _mock_request

# Skipping this test b/c of an unexpected error validating BuildingSync files
# See here for more info: https://github.com/SEED-platform/seed/pull/2901
@skip
def test_build_bsyncr_input_returns_valid_bsync_document(self):
# Act
doc, errors = _build_bsyncr_input(self.analysis_property_view, self.meter)
Expand Down

0 comments on commit 6247533

Please sign in to comment.