Skip to content

Commit 45f0743

Browse files
authored
Merge branch 'master' into fix-syntax-warnings
2 parents 954a164 + 08d4e85 commit 45f0743

File tree

530 files changed

+106848
-25913
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

530 files changed

+106848
-25913
lines changed

.appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ for:
1717
# init:
1818
# - sh: curl -sflL 'https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-ssh.sh' | bash -e -
1919
install:
20-
- sh: sudo DEBIAN_FRONTEND=noninteractive apt-get -y update
20+
- sh: sudo DEBIAN_FRONTEND=noninteractive apt-get -y update --allow-releaseinfo-change
2121
# AppImage dependencies
2222
- sh: sudo DEBIAN_FRONTEND=noninteractive apt-get -y install libfuse2
2323
# Preparation script dependencies

eos/db/migrations/upgrade48.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
"""
2+
Migration 48
3+
4+
- added pilot security column (CONCORD ships)
5+
"""
6+
7+
8+
import sqlalchemy
9+
10+
11+
def upgrade(saveddata_engine):
12+
try:
13+
saveddata_engine.execute("SELECT pilotSecurity FROM fits LIMIT 1")
14+
except sqlalchemy.exc.DatabaseError:
15+
saveddata_engine.execute("ALTER TABLE fits ADD COLUMN pilotSecurity FLOAT")

eos/db/migrations/upgrade49.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
"""
2+
Migration 49
3+
4+
- added hp column to targetResists table
5+
"""
6+
7+
8+
import sqlalchemy
9+
10+
11+
def upgrade(saveddata_engine):
12+
try:
13+
saveddata_engine.execute("SELECT hp FROM targetResists LIMIT 1;")
14+
except sqlalchemy.exc.DatabaseError:
15+
saveddata_engine.execute("ALTER TABLE targetResists ADD COLUMN hp FLOAT;")

eos/db/saveddata/fit.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@
6363
Column("ignoreRestrictions", Boolean, default=0),
6464
Column("created", DateTime, nullable=True, default=datetime.datetime.now),
6565
Column("modified", DateTime, nullable=True, default=datetime.datetime.now, onupdate=datetime.datetime.now),
66-
Column("systemSecurity", Integer, nullable=True)
66+
Column("systemSecurity", Integer, nullable=True),
67+
Column("pilotSecurity", Float, nullable=True),
6768
)
6869

6970
projectedFits_table = Table("projectedFits", saveddata_meta,

eos/db/saveddata/targetProfile.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
Column('maxVelocity', Float, nullable=True),
3838
Column('signatureRadius', Float, nullable=True),
3939
Column('radius', Float, nullable=True),
40+
Column('hp', Float, nullable=True),
4041
Column('ownerID', ForeignKey('users.ID'), nullable=True),
4142
Column('created', DateTime, nullable=True, default=datetime.datetime.now),
4243
Column('modified', DateTime, nullable=True, onupdate=datetime.datetime.now))
@@ -48,4 +49,5 @@
4849
'rawName': targetProfiles_table.c.name,
4950
'_maxVelocity': targetProfiles_table.c.maxVelocity,
5051
'_signatureRadius': targetProfiles_table.c.signatureRadius,
51-
'_radius': targetProfiles_table.c.radius})
52+
'_radius': targetProfiles_table.c.radius,
53+
'_hp': targetProfiles_table.c.hp})

0 commit comments

Comments
 (0)