batch.install

  1. 6.x modules/batch/batch.install
  2. 5.x modules/batch/batch.install

File

modules/batch/batch.install
View source
  1. <?php
  2. /**
  3. * The installation file for the Batch module
  4. */
  5. /**
  6. * Implementation of hook_install.
  7. *
  8. * We want to create our database table.
  9. *
  10. */
  11. function batch_install() {
  12. db_query("DROP TABLE IF EXISTS `batch_queue` ");
  13. db_query("
  14. CREATE TABLE `batch_queue` (
  15. `batch_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  16. `token` varchar(64) NOT NULL COMMENT 'A string token generated against the current users session id and the batch id, used to ensure that only the user who submitted the batch can effectively access it.',
  17. `created` int(11) unsigned NOT NULL COMMENT 'A Unix timestamp indicating when this batch was submitted for processing. Stale batches are purged at cron time.',
  18. `batch_data` longblob COMMENT 'A serialized array containing the processing data for the batch.',
  19. PRIMARY KEY (`batch_id`),
  20. KEY `token` (`token`)
  21. )
  22. ");
  23. }

Functions

Namesort descending Description
batch_install Implementation of hook_install.