Development:DDL exceptions

Материал из База знаний Центра ПУСК МФТИ
Версия от 08:51, 21 октября 2024; Олег Давидович (обсуждение | вклад) (1 версия импортирована)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

Шаблон:Moodle 2.0In previous versions problems during upgrade were ignored by default.

Overview

Файл:Ddl exceptions.png

Defined in lib/ddllib.php for now.

ddl_exception

Base class for DDL related exceptions

ddl_table_missing_exception

Table specified in function parameter does not exist.

ddl_field_missing_exception

Field specified in function parameter does not exist.

ddl_change_structure_exception

General exception thrown during execution of sql that changes database structure.

See also

  • Exceptions: General guidelines for using of exceptions in Moodle 2.0
  • DML functions: Where all the functions used to handle DB data. (DML) are defined.
  • DDL functions: Where all the functions used to handle DB objects (DDL) are defined.