View · Index

Unit 2 / Checking the Data Model

  • After note-procs.tcl is created, it can be loaded into a running OpenACS instance via APM (/acs-admin/apm), choose "Reload files changed" for the note package.
  • This will cause the XOTcl Core to set-up the data model
  • Primarily the following things are created in the database:
    • A new entry in relation "acs_object_types" called "::demo::Note"
    • A new attribute table "demo_note" that stores type-specific attribute values, e.g. number.
  • As there is no need for creation SQL scripts, there is also no need for SQL deletion ones. You may use ::demo::Note->drop_object_type manually or in a package removal hook (after-uninstall etc.)