Révision ed9a13f1
Ajouté par Assos Assos il y a presque 4 ans
drupal7/sites/all/modules/feeds/feeds.install | ||
---|---|---|
106 | 106 |
'export' => array( |
107 | 107 |
'key' => 'id', |
108 | 108 |
'identifier' => 'feeds_importer', |
109 |
'default hook' => 'feeds_importer_default', // Function hook name. |
|
109 |
// Function hook name. |
|
110 |
'default hook' => 'feeds_importer_default', |
|
110 | 111 |
'api' => array( |
111 | 112 |
'owner' => 'feeds', |
112 |
'api' => 'feeds_importer_default', // Base name for api include files. |
|
113 |
// Base name for api include files. |
|
114 |
'api' => 'feeds_importer_default', |
|
113 | 115 |
'minimum_version' => 1, |
114 | 116 |
'current_version' => 1, |
115 | 117 |
), |
... | ... | |
233 | 235 |
'guid' => array( |
234 | 236 |
'type' => 'text', |
235 | 237 |
'not null' => TRUE, |
236 |
'description' => 'Unique identifier for the feed item.' |
|
238 |
'description' => 'Unique identifier for the feed item.',
|
|
237 | 239 |
), |
238 | 240 |
'hash' => array( |
239 | 241 |
'type' => 'varchar', |
240 |
'length' => 32, // The length of an MD5 hash. |
|
242 |
// 32 is the length of an MD5 hash. |
|
243 |
'length' => 32, |
|
241 | 244 |
'not null' => TRUE, |
242 | 245 |
'default' => '', |
243 | 246 |
'description' => 'The hash of the source item.', |
... | ... | |
476 | 479 |
'guid' => array( |
477 | 480 |
'type' => 'text', |
478 | 481 |
'not null' => TRUE, |
479 |
'description' => 'Unique identifier for the feed item.' |
|
482 |
'description' => 'Unique identifier for the feed item.',
|
|
480 | 483 |
), |
481 | 484 |
'hash' => array( |
482 | 485 |
'type' => 'varchar', |
483 |
'length' => 32, // The length of an MD5 hash. |
|
486 |
// 32 is the length of an MD5 hash. |
|
487 |
'length' => 32, |
|
484 | 488 |
'not null' => TRUE, |
485 | 489 |
'default' => '', |
486 | 490 |
'description' => 'The hash of the source item.', |
... | ... | |
585 | 589 |
* Add index for looking up by entity_type + url/ guid to feeds_item table. |
586 | 590 |
*/ |
587 | 591 |
function feeds_update_7204() { |
588 |
db_add_index('feeds_item', 'global_lookup_url', array('entity_type', array('url', 128))); |
|
589 |
db_add_index('feeds_item', 'global_lookup_guid', array('entity_type', array('guid', 128))); |
|
592 |
db_add_index('feeds_item', 'global_lookup_url', array( |
|
593 |
'entity_type', |
|
594 |
array('url', 128), |
|
595 |
)); |
|
596 |
db_add_index('feeds_item', 'global_lookup_guid', array( |
|
597 |
'entity_type', |
|
598 |
array('guid', 128), |
|
599 |
)); |
|
590 | 600 |
} |
591 | 601 |
|
592 | 602 |
/** |
... | ... | |
608 | 618 |
)); |
609 | 619 |
|
610 | 620 |
db_add_primary_key('feeds_item', array('entity_type', 'entity_id')); |
611 |
db_add_index('feeds_item', 'lookup_url', array('entity_type', 'id', 'feed_nid', array('url', 128))); |
|
612 |
db_add_index('feeds_item', 'lookup_guid', array('entity_type', 'id', 'feed_nid', array('guid', 128))); |
|
613 |
db_add_index('feeds_item', 'global_lookup_url', array('entity_type', array('url', 128))); |
|
614 |
db_add_index('feeds_item', 'global_lookup_guid', array('entity_type', array('guid', 128))); |
|
621 |
db_add_index('feeds_item', 'lookup_url', array( |
|
622 |
'entity_type', |
|
623 |
'id', |
|
624 |
'feed_nid', |
|
625 |
array('url', 128), |
|
626 |
)); |
|
627 |
db_add_index('feeds_item', 'lookup_guid', array( |
|
628 |
'entity_type', |
|
629 |
'id', |
|
630 |
'feed_nid', |
|
631 |
array('guid', 128), |
|
632 |
)); |
|
633 |
db_add_index('feeds_item', 'global_lookup_url', array( |
|
634 |
'entity_type', |
|
635 |
array('url', 128), |
|
636 |
)); |
|
637 |
db_add_index('feeds_item', 'global_lookup_guid', array( |
|
638 |
'entity_type', |
|
639 |
array('guid', 128), |
|
640 |
)); |
|
615 | 641 |
} |
616 | 642 |
|
617 | 643 |
/** |
... | ... | |
722 | 748 |
DrupalQueue::get('feeds_importer_expire')->deleteQueue(); |
723 | 749 |
} |
724 | 750 |
|
725 |
/**
|
|
726 |
* Does nothing. Update removed.
|
|
727 |
*/
|
|
751 |
/** |
|
752 |
* Does nothing. Update removed. |
|
753 |
*/ |
|
728 | 754 |
function feeds_update_7211(&$sandbox) { |
729 | 755 |
} |
730 | 756 |
|
... | ... | |
743 | 769 |
* Set cache class for Feeds HTTP cache. |
744 | 770 |
*/ |
745 | 771 |
function feeds_update_7213() { |
772 |
// Check if Feeds is enabled first. |
|
773 |
if (!class_exists('FeedsHTTPCache') && !module_exists('feeds')) { |
|
774 |
throw new DrupalUpdateException('Please enable the Feeds module to perform this update.'); |
|
775 |
} |
|
776 |
|
|
746 | 777 |
// Perform a registry rebuild so the system hopefully discovers the |
747 | 778 |
// FeedsHTTPCache class. |
748 |
if (function_exists('registry_rebuild')) { |
|
779 |
if (!class_exists('FeedsHTTPCache') && function_exists('registry_rebuild')) {
|
|
749 | 780 |
registry_rebuild(); |
750 | 781 |
} |
751 | 782 |
|
Formats disponibles : Unified diff
Weekly update of contrib modules