from sqlalchemy import Column, String

from .base import Base


class Setting(Base):
    __tablename__ = 'settings'

    name = Column(String(32), nullable=False, primary_key=True)
    value = Column(String(512))
    default_value = Column(String(512))
    title = Column(String(127), nullable=False)
    data_type = Column(String(8))   # string or text for now
    description = Column(String(512))

from sqlalchemy import Column, String, Text

from .base import Base


class Setting(Base):
    __tablename__ = 'settings'

    name = Column(String(32), nullable=False, primary_key=True)
    value = Column(Text)
    default_value = Column(Text)
    title = Column(String(127), nullable=False)
    data_type = Column(String(8))   # string or text for now
    description = Column(String(512))

Set setings.value type to text
Set setings.value type to text

- from sqlalchemy import Column, String
+ from sqlalchemy import Column, String, Text
  
  from .base import Base
  
  
  class Setting(Base):
      __tablename__ = 'settings'
  
      name = Column(String(32), nullable=False, primary_key=True)
-     value = Column(String(512))
+     value = Column(Text)
-     default_value = Column(String(512))
+     default_value = Column(Text)
      title = Column(String(127), nullable=False)
      data_type = Column(String(8))   # string or text for now
      description = Column(String(512))
  
Set setings.value type to text
## Code Before:
from sqlalchemy import Column, String

from .base import Base


class Setting(Base):
    __tablename__ = 'settings'

    name = Column(String(32), nullable=False, primary_key=True)
    value = Column(String(512))
    default_value = Column(String(512))
    title = Column(String(127), nullable=False)
    data_type = Column(String(8))   # string or text for now
    description = Column(String(512))

## Instruction:
Set setings.value type to text
## Code After:
from sqlalchemy import Column, String, Text

from .base import Base


class Setting(Base):
    __tablename__ = 'settings'

    name = Column(String(32), nullable=False, primary_key=True)
    value = Column(Text)
    default_value = Column(Text)
    title = Column(String(127), nullable=False)
    data_type = Column(String(8))   # string or text for now
    description = Column(String(512))
