/[drupal]/contributions/modules/weblink/weblink.mysql
ViewVC logotype

Contents of /contributions/modules/weblink/weblink.mysql

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


Revision 1.6 - (show annotations) (download)
Sun May 8 15:22:24 2005 UTC (4 years, 6 months ago) by ber
Branch: MAIN
CVS Tags: HEAD
Branch point for: DRUPAL-4-6
Changes since 1.5: +31 -15 lines
- Complete rewrite of the module, prepqring it for the new image bundle that will be released very soon:
  Is now compatible with 4.6 . after so,e testing it should be released for 4.6.
- Removed browsing and directory interface. Use directory module instead.
- Removed monitoring. Monitoring will soon be released as a new module.
- Removed Blogmarks. Blogmarks should be released as a new module.
- Removed all extra fields. Additional fields must be handled by new modules trough nodeAPI,for example flexinode module.
- Removed rating. Rating should be handled by a rating module.
- Removed impotr export. this will be moved to a more general import export module.
- Use Drupals validate_url for better validation
- Add class 'outgoing' for themability
- Cleaned up a lot of crufty code.
1 -- $Id: weblinks.mysql,v 1.2 2005/02/02 22:40:26 syscrusher Exp $
2
3 -- WARNING! This is a preliminary version for a rewritten "weblinks"
4 -- module. DO NOT apply this against an existing Drupal installation,
5 -- or it will ERASE your weblinks table.
6
7 DROP TABLE IF EXISTS weblinks;
8
9 -- lid, the link ID, is linked to the sequence weblinks_lid
10 CREATE TABLE weblinks (
11 lid INT(10) UNSIGNED NOT NULL DEFAULT '0',
12 url_md5 CHAR(32) NOT NULL,
13 url TEXT NOT NULL DEFAULT '',
14 clicks INT(10) UNSIGNED NOT NULL DEFAULT '0',
15 last_click_time INT(11) UNSIGNED NOT NULL DEFAULT '0',
16 PRIMARY KEY (lid),
17 UNIQUE INDEX url_ix (url_md5),
18 UNIQUE INDEX stale_ix (last_click_time, lid),
19 INDEX short_url_ix (url(20))
20 );
21
22 DROP TABLE IF EXISTS weblinks_node;
23
24 -- lid is a foreign key to weblinks
25 CREATE TABLE weblinks_node (
26 lid INT(10) UNSIGNED NOT NULL DEFAULT '0',
27 nid INT(10) UNSIGNED NOT NULL DEFAULT '0',
28 weight INT(4) NOT NULL DEFAULT '0',
29 link_title VARCHAR(255) NOT NULL DEFAULT '',
30 PRIMARY KEY (lid, nid),
31 UNIQUE INDEX node_link_ix (nid, lid, weight)
32 );

  ViewVC Help
Powered by ViewVC 1.1.2