Skip to content

Commit

Permalink
Fixed sql error
Browse files Browse the repository at this point in the history
  • Loading branch information
sendya committed Apr 28, 2016
1 parent fd73618 commit b78afa3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 23 deletions.
20 changes: 0 additions & 20 deletions Migrations/20160417083525_update_version.php

This file was deleted.

10 changes: 7 additions & 3 deletions Migrations/20160428160038_update_version112.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,13 @@ public function change()
$this->execute("DELETE FROM `options` WHERE `k` LIKE '%custom_mail_%'");
$this->insert('options', $option);
// update table column 20160427073456

$table = $this->table('card');
$table->renameColumn('pram1', 'expireTime');
$table->changeColumn('expireTime', 'integer', ['null'=> true, 'default'=> 0]);
$table->save();
$column = $table->hasColumn('pram1');
if($column) {
$table->renameColumn('pram1', 'expireTime');
$table->changeColumn('expireTime', 'integer', ['null'=> true, 'default'=> 0]);
$table->save();
}
}
}

1 comment on commit b78afa3

@sendya
Copy link
Owner Author

@sendya sendya commented on b78afa3 Apr 28, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed #75 and #74

Please sign in to comment.