| 1 |
<?php |
<?php |
| 2 |
// $Id: authorship.install,v 1.6 2007/04/11 01:10:29 lafo Exp $ |
// $Id: authorship.install,v 1.5.2.1 2007/07/12 22:05:55 karpuz Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 35 |
"cid INT NOT NULL DEFAULT 0,". |
"cid INT NOT NULL DEFAULT 0,". |
| 36 |
"authorship VARCHAR(255) NOT NULL DEFAULT '',". |
"authorship VARCHAR(255) NOT NULL DEFAULT '',". |
| 37 |
"profile_real_name SMALLINT DEFAULT 0, ". |
"profile_real_name SMALLINT DEFAULT 0, ". |
| 38 |
"PRIMARY KEY (nid, cid)"); |
"PRIMARY KEY (nid, cid))"); |
| 39 |
$query2 = db_query("CREATE INDEX node_authorship_idx ON {node_authorship} (authorship);"); |
$query2 = db_query("CREATE INDEX node_authorship_idx ON {node_authorship} (authorship);"); |
| 40 |
if($query1 && $query2) { |
if($query1 && $query2) { |
| 41 |
$created = TRUE; |
$created = TRUE; |