Adding a proper primary key to db connections
This commit is contained in:
Родитель
9fda01c5d2
Коммит
5f2a4ca673
|
@ -139,7 +139,8 @@ class DatabaseConnection(Base):
|
|||
"""
|
||||
__tablename__ = "db_connection"
|
||||
|
||||
db_id = Column(String(ID_LEN), primary_key=True)
|
||||
id = Column(Integer(), primary_key=True)
|
||||
db_id = Column(String(ID_LEN), unique=True)
|
||||
db_type = Column(String(500))
|
||||
host = Column(String(500))
|
||||
schema = Column(String(500))
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
from bash_operator import BashOperator
|
||||
from mysql_operator import MySqlOperator
|
||||
from hive_operator import HiveOperator
|
||||
from hive2samba_operator import Hive2SambaOperator
|
||||
from sensors import SqlSensor
|
||||
from sensors import ExternalTaskSensor
|
||||
from sensors import HivePartitionSensor
|
||||
|
|
|
@ -997,6 +997,8 @@ class DatabaseConnectionModelView(LoginMixin, ModelView):
|
|||
('presto', 'Presto',),
|
||||
('mysql', 'MySQL',),
|
||||
('oracle', 'Oracle',),
|
||||
('samba', 'Samba',),
|
||||
('ftp', 'FTP',),
|
||||
]
|
||||
}
|
||||
mv = DatabaseConnectionModelView(
|
||||
|
|
Загрузка…
Ссылка в новой задаче