(saveddata_engine)
| 8 | |
| 9 | |
| 10 | def upgrade(saveddata_engine): |
| 11 | # Update characters schema to include default chars |
| 12 | try: |
| 13 | saveddata_engine.execute("SELECT defaultChar, chars FROM characters LIMIT 1") |
| 14 | except sqlalchemy.exc.DatabaseError: |
| 15 | saveddata_engine.execute("ALTER TABLE characters ADD COLUMN defaultChar INTEGER") |
| 16 | saveddata_engine.execute("ALTER TABLE characters ADD COLUMN chars VARCHAR") |
| 17 | |
| 18 | # Update fits schema to include booster attribute |
| 19 | try: |
| 20 | saveddata_engine.execute("SELECT booster FROM fits LIMIT 1") |
| 21 | except sqlalchemy.exc.DatabaseError: |
| 22 | saveddata_engine.execute("ALTER TABLE fits ADD COLUMN booster BOOLEAN") |
nothing calls this directly
no outgoing calls
no test coverage detected