Skip to content
This repository has been archived by the owner on Jun 5, 2022. It is now read-only.

Commit

Permalink
db_upgrade.py, waiver_wire_disable_days now the correct type wrong type
Browse files Browse the repository at this point in the history
  • Loading branch information
nickfrerichs committed Aug 6, 2017
1 parent 60b06fa commit 83d0754
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
1 change: 0 additions & 1 deletion application/views/admin/transactions/transactions.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<link href="<?=site_url('/css/foundation-datepicker.min.css')?>" rel="stylesheet">
<div class="row">
<div class="columns">
<?php //print_r($approvals); ?>
<div class="row align-center">
<div class="columns small-12">
<h5>Waiver wire approvals</h5>
Expand Down
8 changes: 4 additions & 4 deletions fflproject.sql

Large diffs are not rendered by default.

14 changes: 13 additions & 1 deletion python/db_upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,18 @@ def main():


def upgrade_db(version):
# if version == "1.0":
# waiver_wire_disable_days should be a varchar

# add waiver_wire_oops_time, integer, seconds allowed to pick up same player just dropped
# query = "ALTER TABLE `league_settings` CHANGE `waiver_wire_disable_days` `waiver_wire_disable_days` VARCHAR( 7 ) NOT NULL"
# cur.execute(query)
# db.commit()

# query = 'update site_settings set db_version = "%s"' % ("1.1")
# cur.execute(query)
# db.commit()
# return get_db_version()

if version == "0.7":
# Add player_injury table
Expand Down Expand Up @@ -47,7 +59,7 @@ def upgrade_db(version):

# Add waiver_wire_disable_days
if not column_exists("waiver_wire_disable_days", "league_settings"):
query = 'ALTER TABLE `league_settings` ADD `waiver_wire_disable_days` BOOLEAN DEFAULT 0'
query = 'ALTER TABLE `league_settings` ADD `waiver_wire_disable_days` VARCHAR(7) NOT NULL'
cur.execute(query)

db.commit()
Expand Down

0 comments on commit 83d0754

Please sign in to comment.