diff --git a/lib/ddl/mssql_sql_generator.php b/lib/ddl/mssql_sql_generator.php index b88fdde677a..2067a44eb1c 100644 --- a/lib/ddl/mssql_sql_generator.php +++ b/lib/ddl/mssql_sql_generator.php @@ -282,7 +282,7 @@ class mssql_sql_generator extends sql_generator { /** * Given one xmldb_table and one xmldb_field, return the SQL statements needed to alter the field in the table */ - public function getAlterFieldSQL($xmldb_table, $xmldb_field) { + public function getAlterFieldSQL($xmldb_table, $xmldb_field, $skip_type_clause = NULL, $skip_default_clause = NULL, $skip_notnull_clause = NULL) { $results = array(); /// To store all the needed SQL commands diff --git a/lib/ddl/postgres_sql_generator.php b/lib/ddl/postgres_sql_generator.php index 31b8374c57a..cb8e00b06b4 100644 --- a/lib/ddl/postgres_sql_generator.php +++ b/lib/ddl/postgres_sql_generator.php @@ -208,7 +208,7 @@ class postgres_sql_generator extends sql_generator { * - Changes in null/not null require the SET/DROP NOT NULL clause * - Changes in default require the SET/DROP DEFAULT clause */ - public function getAlterFieldSQL($xmldb_table, $xmldb_field) { + public function getAlterFieldSQL($xmldb_table, $xmldb_field, $skip_type_clause = NULL, $skip_default_clause = NULL, $skip_notnull_clause = NULL) { $results = array(); /// To store all the needed SQL commands /// Get the normla names of the table and field diff --git a/lib/ddl/sql_generator.php b/lib/ddl/sql_generator.php index 1d400e8699d..059c62016c8 100644 --- a/lib/ddl/sql_generator.php +++ b/lib/ddl/sql_generator.php @@ -1140,7 +1140,7 @@ abstract class sql_generator { /** * Returns the code (array of statements) needed to execute extra statements on table rename */ - public function getRenameTableExtraSQL($xmldb_table) { + public function getRenameTableExtraSQL($xmldb_table, $newname) { return array(); }