Batch.php 1.25 KB
Newer Older
1 2 3 4
<?php

/**
 * @file
5
 * Contains \Drupal\migrate_drupal\Tests\Table\d6\Batch.
6 7 8
 *
 * THIS IS A GENERATED FILE. DO NOT EDIT.
 *
9
 * @see core/scripts/migrate-db.sh
10 11 12
 * @see https://www.drupal.org/sandbox/benjy/2405029
 */

13
namespace Drupal\migrate_drupal\Tests\Table\d6;
14

15
use Drupal\migrate_drupal\Tests\Dump\DrupalDumpBase;
16 17 18 19

/**
 * Generated file to represent the batch table.
 */
20
class Batch extends DrupalDumpBase {
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60

  public function load() {
    $this->createTable("batch", array(
      'primary key' => array(
        'bid',
      ),
      'fields' => array(
        'bid' => array(
          'type' => 'serial',
          'not null' => TRUE,
          'length' => '10',
          'unsigned' => TRUE,
        ),
        'token' => array(
          'type' => 'varchar',
          'not null' => TRUE,
          'length' => '64',
        ),
        'timestamp' => array(
          'type' => 'int',
          'not null' => TRUE,
          'length' => '11',
        ),
        'batch' => array(
          'type' => 'text',
          'not null' => FALSE,
          'length' => 100,
        ),
      ),
    ));
    $this->database->insert("batch")->fields(array(
      'bid',
      'token',
      'timestamp',
      'batch',
    ))
    ->execute();
  }

}
61
#28b4106c5eefd0a82f2fdc6d870fde78