Skip to content

Commit 84c0295

Browse files
committed
During update to 1.4.0, keep date entries of whitelist in notes
1 parent 3e2ab3a commit 84c0295

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sql/updates/1.4.0.sql

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
ALTER TABLE `#__bfstop_failedlogin` DROP COLUMN error;
22

3-
ALTER TABLE `#__bfstop_whitelist` DROP COLUMN crdate;
43

54
ALTER TABLE `#__bfstop_whitelist` ADD COLUMN notes varchar(255) NOT NULL DEFAULT '';
5+
6+
UPDATE `#__bfstop_whitelist` SET notes=CONCAT('created: ',DATE_FORMAT(crdate, '%Y-%m-%d')) WHERE crdate != '0000-00-00 00:00:00';
7+
8+
ALTER TABLE `#__bfstop_whitelist` DROP COLUMN crdate;

0 commit comments

Comments
 (0)