Create new migration to convert column type of defense_component from

string to array
This commit is contained in:
leigh-mil
2019-12-26 16:27:52 -05:00
parent d0fd7126be
commit dad54ec139
4 changed files with 41 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
from sqlalchemy import Column, String
from sqlalchemy.orm import relationship
from sqlalchemy.types import ARRAY
from itertools import chain
from atst.models.base import Base
@@ -20,7 +21,7 @@ class Portfolio(
name = Column(String, nullable=False)
description = Column(String)
defense_component = Column(
String, nullable=False
ARRAY(String), nullable=False
) # Department of Defense Component
applications = relationship(