You are here

function example_schema_ret in Coder 7.2

Same name and namespace in other branches
  1. 7 coder_upgrade/tests/old/samples/example.module \example_schema_ret()

File

coder_upgrade/tests/old/samples/example.module, line 505

Code

function example_schema_ret() {

  // db_add_field() -- Change the next line but leave this alone
  // The parameters are not correct for each of these functions, but should
  // allow the upgrade code to be tested.
  // includes/database.pgsql.inc Add a new field to a table.
  db_add_field($ret, $table, $new_name);

  // includes/database.pgsql.inc Add an index.
  db_add_index($ret, $table, $new_name);

  // includes/database.pgsql.inc Add a primary key.
  db_add_primary_key($ret, $table, $new_name);

  // includes/database.pgsql.inc Add a unique key.
  db_add_unique_key($ret, $table, $new_name);

  // includes/database.pgsql.inc Change a field definition.
  db_change_field($ret, $table, $new_name);

  // includes/database.inc Create a new table from a Drupal table definition.
  db_create_table($ret, $table, $new_name);

  // includes/database.pgsql.inc Generate SQL to create a new table from a Drupal schema definition.
  db_create_table_sql($ret, $table, $new_name);

  // includes/database.pgsql.inc Drop a field.
  db_drop_field($ret, $table, $new_name);

  // includes/database.pgsql.inc Drop an index.
  db_drop_index($ret, $table, $new_name);

  // includes/database.pgsql.inc Drop the primary key.
  db_drop_primary_key($ret, $table, $new_name);

  // includes/database.pgsql.inc Drop a table.
  db_drop_table($ret, $table, $new_name);

  // includes/database.pgsql.inc Drop a unique key.
  db_drop_unique_key($ret, $table, $new_name);

  // includes/database.inc Return an array of field names from an array of key/index column specifiers.
  db_field_names($ret, $table, $new_name);

  // includes/database.pgsql.inc Set the default value for a field.
  db_field_set_default($ret, $table, $new_name);

  // includes/database.pgsql.inc Set a field to have no default value.
  db_field_set_no_default($ret, $table, $new_name);

  // includes/database.pgsql.inc Rename a table.
  db_rename_table($ret, $table, $new_name);
}