phpBB

Code Changes

File: phpbb/db/tools.php

  Unmodified   Added   Modified   Removed
Line 1531Line 1531
					{
$sql .= ' COLLATE utf8_unicode_ci';
}

					{
$sql .= ' COLLATE utf8_unicode_ci';
}

 
				}

if (isset($column_data['after']))
{
$return_array['after'] = $column_data['after'];

				}

break;

				}

break;

Line 2335Line 2340
				if (!empty($column_data['default']))
{
// Add new default value constraint

				if (!empty($column_data['default']))
{
// Add new default value constraint

					$statements[] = 'ALTER TABLE [' . $table_name . '] ADD CONSTRAINT [DF_' . $table_name . '_' . $column_name . '_1] ' . $this->db->sql_escape($column_data['default']) . ' FOR [' . $column_name . ']';

					$statements[] = 'ALTER TABLE [' . $table_name . '] ADD CONSTRAINT [DF_' . $table_name . '_' . $column_name . '_1] ' . $column_data['default'] . ' FOR [' . $column_name . ']';

				}

if (!empty($indexes))

				}

if (!empty($indexes))