HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux newsites.squeezer-software.com 6.8.0-90-generic #91-Ubuntu SMP PREEMPT_DYNAMIC Tue Nov 18 14:14:30 UTC 2025 x86_64
User: www-data (33)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /home/sites/orpis/modules/simpletest/tests/upgrade/drupal-6.trigger.database.php
<?php
/**
 * @file
 * Test content for the trigger upgrade path.
 */
db_create_table('trigger_assignments', array(
  'fields' => array(
    'hook' => array(
      'type' => 'varchar',
      'length' => 32,
      'not null' => TRUE,
      'default' => '',
    ),
    'op' => array(
      'type' => 'varchar',
      'length' => 32,
      'not null' => TRUE,
      'default' => '',
    ),
    'aid' => array(
      'type' => 'varchar',
      'length' => 255,
      'not null' => TRUE,
      'default' => '',
    ),
    'weight' => array(
      'type' => 'int',
      'not null' => TRUE,
      'default' => 0,
    ),
  ),
  'primary key' => array('hook', 'op', 'aid'),
  'module' => 'trigger',
  'name' => 'trigger_assignments',
));


// Add several trigger configurations.
db_insert('trigger_assignments')->fields(array(
  'hook',
  'op',
  'aid',
  'weight',
))
->values(array(
  'hook' => 'node',
  'op' => 'presave',
  'aid' => 'node_publish_action',
  'weight' => '1',
))
->values(array(
  'hook' => 'comment',
  'op' => 'presave',
  'aid' => 'comment_publish_action',
  'weight' => '1',
))
->values(array(
  'hook' => 'comment_delete',
  'op' => 'presave',
  'aid' => 'node_save_action',
  'weight' => '1',
))
->values(array(
  'hook' => 'nodeapi',
  'op' => 'presave',
  'aid' => 'node_make_sticky_action',
  'weight' => '1',
))
->values(array(
  'hook' => 'nodeapi',
  'op' => 'somehow_nodeapi_got_a_very_long',
  'aid' => 'node_save_action',
  'weight' => '1',
))
->execute();

db_update('system')->fields(array(
  'schema_version' => '6000',
  'status' => '1',
))
->condition('filename', 'modules/trigger/trigger.module')
->execute();