Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
A
alpha-mind
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dr.李
alpha-mind
Commits
03a5e1cf
Commit
03a5e1cf
authored
Sep 12, 2017
by
Dr.李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update models
parent
7f9caf57
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
models.py
alphamind/data/dbmodel/models.py
+14
-1
No files found.
alphamind/data/dbmodel/models.py
View file @
03a5e1cf
...
@@ -934,6 +934,19 @@ class RiskCovDay(Base):
...
@@ -934,6 +934,19 @@ class RiskCovDay(Base):
FoodBever
=
Column
(
Float
(
53
))
FoodBever
=
Column
(
Float
(
53
))
Electronics
=
Column
(
Float
(
53
))
Electronics
=
Column
(
Float
(
53
))
Computer
=
Column
(
Float
(
53
))
Computer
=
Column
(
Float
(
53
))
LightIndus
=
Column
(
Float
(
53
))
Utilities
=
Column
(
Float
(
53
))
Telecom
=
Column
(
Float
(
53
))
AgriForest
=
Column
(
Float
(
53
))
CHEM
=
Column
(
Float
(
53
))
Media
=
Column
(
Float
(
53
))
IronSteel
=
Column
(
Float
(
53
))
NonBankFinan
=
Column
(
Float
(
53
))
ELECEQP
=
Column
(
Float
(
53
))
AERODEF
=
Column
(
Float
(
53
))
Conglomerates
=
Column
(
Float
(
53
))
COUNTRY
=
Column
(
Float
(
53
))
updateTime
=
Column
(
DateTime
)
class
RiskCovLong
(
Base
):
class
RiskCovLong
(
Base
):
...
@@ -1741,5 +1754,5 @@ class Uqer(Base):
...
@@ -1741,5 +1754,5 @@ class Uqer(Base):
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
from
sqlalchemy
import
create_engine
from
sqlalchemy
import
create_engine
engine
=
create_engine
(
'postgresql+psycopg2://postgres:
we083826@192.168.0.102
/alpha'
)
engine
=
create_engine
(
'postgresql+psycopg2://postgres:
A12345678!@10.63.6.220
/alpha'
)
Base
.
metadata
.
create_all
(
engine
)
Base
.
metadata
.
create_all
(
engine
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment