source: Dev/branches/rest-dojo-ui/client/util/jsdoc/jsdoc.install @ 256

Last change on this file since 256 was 256, checked in by hendrikvanantwerpen, 13 years ago

Reworked project structure based on REST interaction and Dojo library. As
soon as this is stable, the old jQueryUI branch can be removed (it's
kept for reference).

  • Property svn:executable set to *
File size: 687 bytes
Line 
1<?php
2
3function jsdoc_install() {
4  switch ($GLOBALS['db_type']) {
5  case 'mysql':
6  case 'mysqli':
7      db_query("CREATE TABLE {jsdoc_variables} (
8        sid INTEGER NOT NULL PRIMARY KEY,
9        variable VARCHAR(255) NOT NULL UNIQUE,
10        private BOOLEAN NOT NULL
11      ) /*!40100 DEFAULT CHARACTER SET UTF8 */ ");
12
13      db_query("CREATE TABLE {jsdoc_objects} (
14        nid INTEGER NOT NULL PRIMARY KEY REFERENCES {node} (nid), -- node-type: jsdoc_object
15        did INTEGER NOT NULL REFERENCES {node} (nid), -- node-type: jsdoc_doc
16        json LONGTEXT NOT NULL,
17        INDEX (did)
18      ) /*!40100 DEFAULT CHARACTER SET UTF8 */ ");
19    break;
20  case 'pgsql':
21    break;
22  }
23}
Note: See TracBrowser for help on using the repository browser.