phpBB

Code Changes

File: phpbb/db/tools.php

  Unmodified   Added   Modified   Removed
Line 2340Line 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))