/[drupal]/contributions/sandbox/deekayen/modules/bookmarks/bookmarks.mysql
ViewVC logotype

Contents of /contributions/sandbox/deekayen/modules/bookmarks/bookmarks.mysql

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Wed Feb 15 17:04:49 2006 UTC (3 years, 9 months ago) by deekayen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +20 -0 lines
add user option to display title as the link instead of having two columns of title and URL. default is still to show title and url columns.
1 CREATE TABLE bookmarks (
2 uid INT UNSIGNED NOT NULL,
3 url VARCHAR(128) NOT NULL,
4 title VARCHAR(128) NOT NULL
5 );
6
7 ALTER TABLE bookmarks ADD INDEX (uid);
8 ALTER TABLE bookmarks ADD fid mediumint(9) unsigned NOT NULL;
9 ALTER TABLE bookmarks ADD options tinyint(3) unsigned NOT NULL default '0';
10 ALTER TABLE bookmarks ADD INDEX (fid);
11
12 CREATE TABLE bookmarks_folders (
13 fid mediumint(8) unsigned NOT NULL auto_increment,
14 f_parent_id mediumint(8) unsigned NOT NULL default '0',
15 uid int(10) unsigned NOT NULL default '0',
16 `name` varchar(128) NOT NULL,
17 options tinyint(3) unsigned NOT NULL default '0',
18 PRIMARY KEY (fid),
19 KEY uid (uid),
20 KEY f_parent_id (f_parent_id)
21 ) COMMENT='options are binary math: 1-expanded by default';
22
23 CREATE TABLE bookmarks_prefs (
24 uid int(10) unsigned NOT NULL,
25 options tinyint(3) unsigned NOT NULL default '0',
26 PRIMARY KEY (uid)
27 ) COMMENT='options are binary math: 1-title is link';

  ViewVC Help
Powered by ViewVC 1.1.2