aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/db
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2017-05-05 20:52:21 -0400
committerMarc Alexander <admin@m-a-styles.de>2017-05-05 20:52:21 -0400
commit18fe3b28330a234ef8a2c1a244b61ec2af1bb294 (patch)
tree53486cc25170c3d1108919df47aea8e088a4ab7d /phpBB/phpbb/db
parentca9e3eb5282a933237636baf7e92a6b072baf477 (diff)
downloadforums-18fe3b28330a234ef8a2c1a244b61ec2af1bb294.tar
forums-18fe3b28330a234ef8a2c1a244b61ec2af1bb294.tar.gz
forums-18fe3b28330a234ef8a2c1a244b61ec2af1bb294.tar.bz2
forums-18fe3b28330a234ef8a2c1a244b61ec2af1bb294.tar.xz
forums-18fe3b28330a234ef8a2c1a244b61ec2af1bb294.zip
[ticket/15219] Update hashes to bcrypt with cron
PHPBB3-15219
Diffstat (limited to 'phpBB/phpbb/db')
-rw-r--r--phpBB/phpbb/db/migration/data/v31x/update_hashes.php33
1 files changed, 33 insertions, 0 deletions
diff --git a/phpBB/phpbb/db/migration/data/v31x/update_hashes.php b/phpBB/phpbb/db/migration/data/v31x/update_hashes.php
new file mode 100644
index 0000000000..aa83c3ffbf
--- /dev/null
+++ b/phpBB/phpbb/db/migration/data/v31x/update_hashes.php
@@ -0,0 +1,33 @@
+<?php
+/**
+ *
+ * This file is part of the phpBB Forum Software package.
+ *
+ * @copyright (c) phpBB Limited <https://www.phpbb.com>
+ * @license GNU General Public License, version 2 (GPL-2.0)
+ *
+ * For full copyright and license information, please see
+ * the docs/CREDITS.txt file.
+ *
+ */
+
+namespace phpbb\db\migration\data\v31x;
+
+class update_hashes extends \phpbb\db\migration\migration
+{
+ static public function depends_on()
+ {
+ return array(
+ '\phpbb\db\migration\data\v31x\v3110',
+ );
+ }
+
+ public function update_data()
+ {
+ return array(
+ array('config.add', array('enable_update_hashes', '1')),
+ array('config.add', array('update_hashes_lock', '')),
+ array('config.add', array('update_hashes_last_cron', '0'))
+ );
+ }
+}