Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

XMLB list of DDL functions to create: Difference between revisions

From MoodleDocs
No edit summary
Line 10: Line 10:
=== The initial list ===
=== The initial list ===


* <font color="green">Done: </font>create_table ($xmldb_table);  
* '''Table functions'''
* <font color="green">Done: </font>drop_table ($xmldb_table);
** <font color="green">Done: </font>create_table ($xmldb_table);  
* <font color="red">Work In Progress</font>: rename_table ($xmldb_table, $newname);
** <font color="green">Done: </font>drop_table ($xmldb_table);
 
** <font color="red">Work In Progress</font>: rename_table ($xmldb_table, $newname);
* add_field ($xmldb_table, $xmldb_field);
* '''Field functions'''
* drop_field ($xmldb_table, $xmldb_field);
** add_field ($xmldb_table, $xmldb_field);
* rename_field ($xmldb_table, $xmldb_field, $newname);
** drop_field ($xmldb_table, $xmldb_field);
* change_field_type ($xmldb_table, $xmldb_field);
** rename_field ($xmldb_table, $xmldb_field, $newname);
* change_field_precision ($xmldb_table, $xmldb_field);
** change_field_type ($xmldb_table, $xmldb_field);
* change_field_unsigned ($xmldb_table, $xmldb_field);
** change_field_precision ($xmldb_table, $xmldb_field);
* change_field_notnull ($xmldb_table, $xmldb_field);
** change_field_unsigned ($xmldb_table, $xmldb_field);
* change_field_sequence ($xmldb_table, $xmldb_field);
** change_field_notnull ($xmldb_table, $xmldb_field);
* change_field_enum ($xmldb_table, $xmldb_field);
** change_field_sequence ($xmldb_table, $xmldb_field);
* change_field_default ($xmldb_table, $xmldb_field);
** change_field_enum ($xmldb_table, $xmldb_field);
 
** change_field_default ($xmldb_table, $xmldb_field);
* add_key ($xmldb_table, $xmldbkey);
* '''Key functions'''
* drop_key ($xmldb_table, $xmldbkey);
** add_key ($xmldb_table, $xmldbkey);
* rename key ($xmldb_table, $xmldbkey, $newname);
** drop_key ($xmldb_table, $xmldbkey);
 
** rename key ($xmldb_table, $xmldbkey, $newname);
* add_index ($xmldb_table, $xmldbindex);
* '''Index functions'''
* drop_index ($xmldb_table, $xmldbindex);
** add_index ($xmldb_table, $xmldbindex);
* rename_index ($xmldb_table, $xmldbindex, $newname);
** drop_index ($xmldb_table, $xmldbindex);
** rename_index ($xmldb_table, $xmldbindex, $newname);




[[Category:XMLDB]]
[[Category:XMLDB]]

Revision as of 18:44, 7 September 2006

XML database schema > Roadmap > Creating new DDL functions > List of DDL functions to create


This page will be used to list and track the process of implementation of the new DDL functions available under Moodle 1.7.

This document can be outdated in the future, if new DDL functions arrive, and no efforts to keep it updated will be done. Its primary goal was to have the initial list and to track the work performed, by using the Done tag. Interim process can use the Work In Progress tag.

You always can view, in this link, the actual list of available DDL functions.

The initial list

  • Table functions
    • Done: create_table ($xmldb_table);
    • Done: drop_table ($xmldb_table);
    • Work In Progress: rename_table ($xmldb_table, $newname);
  • Field functions
    • add_field ($xmldb_table, $xmldb_field);
    • drop_field ($xmldb_table, $xmldb_field);
    • rename_field ($xmldb_table, $xmldb_field, $newname);
    • change_field_type ($xmldb_table, $xmldb_field);
    • change_field_precision ($xmldb_table, $xmldb_field);
    • change_field_unsigned ($xmldb_table, $xmldb_field);
    • change_field_notnull ($xmldb_table, $xmldb_field);
    • change_field_sequence ($xmldb_table, $xmldb_field);
    • change_field_enum ($xmldb_table, $xmldb_field);
    • change_field_default ($xmldb_table, $xmldb_field);
  • Key functions
    • add_key ($xmldb_table, $xmldbkey);
    • drop_key ($xmldb_table, $xmldbkey);
    • rename key ($xmldb_table, $xmldbkey, $newname);
  • Index functions
    • add_index ($xmldb_table, $xmldbindex);
    • drop_index ($xmldb_table, $xmldbindex);
    • rename_index ($xmldb_table, $xmldbindex, $newname);