Skip to content

Commit

Permalink
During update to 1.4.0, keep date entries of whitelist in notes
Browse files Browse the repository at this point in the history
  • Loading branch information
codeling committed Jan 29, 2017
1 parent 3e2ab3a commit 84c0295
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sql/updates/1.4.0.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
ALTER TABLE `#__bfstop_failedlogin` DROP COLUMN error;

ALTER TABLE `#__bfstop_whitelist` DROP COLUMN crdate;

ALTER TABLE `#__bfstop_whitelist` ADD COLUMN notes varchar(255) NOT NULL DEFAULT '';

UPDATE `#__bfstop_whitelist` SET notes=CONCAT('created: ',DATE_FORMAT(crdate, '%Y-%m-%d')) WHERE crdate != '0000-00-00 00:00:00';

ALTER TABLE `#__bfstop_whitelist` DROP COLUMN crdate;

0 comments on commit 84c0295

Please sign in to comment.