aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/db/migration
diff options
context:
space:
mode:
authorSaeed Hubaishan <saeed@hubaishan.com>2015-11-29 10:51:19 +0300
committerMarc Alexander <admin@m-a-styles.de>2016-01-07 17:36:02 +0100
commit678ca5dcdc27f2df10c6042ce74d08f4196d5a02 (patch)
tree631d7aee240afe38f8ce7a3027d7f6b12d946650 /phpBB/phpbb/db/migration
parenta7058d968ff2e4b4cb4b32fb3f7284bd1a539c93 (diff)
downloadforums-678ca5dcdc27f2df10c6042ce74d08f4196d5a02.tar
forums-678ca5dcdc27f2df10c6042ce74d08f4196d5a02.tar.gz
forums-678ca5dcdc27f2df10c6042ce74d08f4196d5a02.tar.bz2
forums-678ca5dcdc27f2df10c6042ce74d08f4196d5a02.tar.xz
forums-678ca5dcdc27f2df10c6042ce74d08f4196d5a02.zip
[ticket/13180] Increase dateformat field size
[ticket/13180] Increase dateformat field size change field size to 64 in these files add new migration file to update the database schema PHPBB3-13180
Diffstat (limited to 'phpBB/phpbb/db/migration')
-rw-r--r--phpBB/phpbb/db/migration/data/v31x/increase_size_of_dateformat.php36
1 files changed, 36 insertions, 0 deletions
diff --git a/phpBB/phpbb/db/migration/data/v31x/increase_size_of_dateformat.php b/phpBB/phpbb/db/migration/data/v31x/increase_size_of_dateformat.php
new file mode 100644
index 0000000000..d2dfeff728
--- /dev/null
+++ b/phpBB/phpbb/db/migration/data/v31x/increase_size_of_dateformat.php
@@ -0,0 +1,36 @@
+<?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 increase_size_of_dateformat extends \phpbb\db\migration\migration
+{
+ static public function depends_on()
+ {
+ return array(
+ '\phpbb\db\migration\data\v31x\v316',
+ );
+ }
+
+ public function update_schema()
+ {
+ return array(
+ 'change_columns' => array(
+ $this->table_prefix . 'users' => array(
+ 'user_dateformat' => array('VCHAR:64', 'd M Y H:i'),
+ ),
+ ),
+ );
+ }
+
+}