/[drupal]/contributions/modules/fb/fb.install
ViewVC logotype

Contents of /contributions/modules/fb/fb.install

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


Revision 1.5 - (show annotations) (download) (as text)
Thu Aug 6 23:47:26 2009 UTC (3 months, 2 weeks ago) by yogadex
Branch: MAIN
Changes since 1.4: +8 -2 lines
File MIME type: text/x-php
#426334 by rjmackay, neilnz; fixes to schema api, postgres compatibility
1 <?php
2
3 function _fb_install_set_weight() {
4 db_query("UPDATE {system} SET weight=-2 WHERE name='fb'");
5 }
6
7 function _fb_install_alter_session_table() {
8 // Make sessions.sid column large enough for Facebook's session_keys.
9 if (variable_get('fb_session_long_keys', TRUE)) {
10 $ret = array();
11 $spec = array(
12 'description' => "Primary key: A session ID. The value is generated by PHP's Session API.",
13 'type' => 'varchar',
14 'length' => 255,
15 'not null' => TRUE,
16 'default' => '');
17 db_change_field($ret, 'sessions', 'sid', 'sid', $spec);
18 }
19 }
20
21 function fb_install() {
22 _fb_install_set_weight();
23 _fb_install_alter_session_table();
24 }
25
26 function fb_uninstall() {
27 }
28
29 function fb_update_6000() {
30 $ret = array();
31 _fb_install_alter_session_table();
32 return $ret;
33 }

  ViewVC Help
Powered by ViewVC 1.1.2