Skip to content

Commit

Permalink
Merge branch 'master' into fix-syntax-warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkFenX authored Nov 27, 2024
2 parents 954a164 + 08d4e85 commit 45f0743
Show file tree
Hide file tree
Showing 530 changed files with 106,848 additions and 25,913 deletions.
2 changes: 1 addition & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ for:
# init:
# - sh: curl -sflL 'https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-ssh.sh' | bash -e -
install:
- sh: sudo DEBIAN_FRONTEND=noninteractive apt-get -y update
- sh: sudo DEBIAN_FRONTEND=noninteractive apt-get -y update --allow-releaseinfo-change
# AppImage dependencies
- sh: sudo DEBIAN_FRONTEND=noninteractive apt-get -y install libfuse2
# Preparation script dependencies
Expand Down
15 changes: 15 additions & 0 deletions eos/db/migrations/upgrade48.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
"""
Migration 48
- added pilot security column (CONCORD ships)
"""


import sqlalchemy


def upgrade(saveddata_engine):
try:
saveddata_engine.execute("SELECT pilotSecurity FROM fits LIMIT 1")
except sqlalchemy.exc.DatabaseError:
saveddata_engine.execute("ALTER TABLE fits ADD COLUMN pilotSecurity FLOAT")
15 changes: 15 additions & 0 deletions eos/db/migrations/upgrade49.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
"""
Migration 49
- added hp column to targetResists table
"""


import sqlalchemy


def upgrade(saveddata_engine):
try:
saveddata_engine.execute("SELECT hp FROM targetResists LIMIT 1;")
except sqlalchemy.exc.DatabaseError:
saveddata_engine.execute("ALTER TABLE targetResists ADD COLUMN hp FLOAT;")
3 changes: 2 additions & 1 deletion eos/db/saveddata/fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@
Column("ignoreRestrictions", Boolean, default=0),
Column("created", DateTime, nullable=True, default=datetime.datetime.now),
Column("modified", DateTime, nullable=True, default=datetime.datetime.now, onupdate=datetime.datetime.now),
Column("systemSecurity", Integer, nullable=True)
Column("systemSecurity", Integer, nullable=True),
Column("pilotSecurity", Float, nullable=True),
)

projectedFits_table = Table("projectedFits", saveddata_meta,
Expand Down
4 changes: 3 additions & 1 deletion eos/db/saveddata/targetProfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
Column('maxVelocity', Float, nullable=True),
Column('signatureRadius', Float, nullable=True),
Column('radius', Float, nullable=True),
Column('hp', Float, nullable=True),
Column('ownerID', ForeignKey('users.ID'), nullable=True),
Column('created', DateTime, nullable=True, default=datetime.datetime.now),
Column('modified', DateTime, nullable=True, onupdate=datetime.datetime.now))
Expand All @@ -48,4 +49,5 @@
'rawName': targetProfiles_table.c.name,
'_maxVelocity': targetProfiles_table.c.maxVelocity,
'_signatureRadius': targetProfiles_table.c.signatureRadius,
'_radius': targetProfiles_table.c.radius})
'_radius': targetProfiles_table.c.radius,
'_hp': targetProfiles_table.c.hp})
Loading

0 comments on commit 45f0743

Please sign in to comment.