media_migration-8.x-1.x-dev/tests/fixtures/drupal7_media/users.php
tests/fixtures/drupal7_media/users.php
<?php
// phpcs:ignoreFile
/**
* @file
* A database agnostic dump for testing purposes.
*
* This file was generated by the Drupal 9.2.10 db-tools.php script.
*/
use Drupal\Core\Database\Database;
$connection = Database::getConnection();
$connection->schema()->createTable('users', array(
'fields' => array(
'uid' => array(
'type' => 'int',
'not null' => TRUE,
'size' => 'normal',
'default' => '0',
'unsigned' => TRUE,
),
'name' => array(
'type' => 'varchar',
'not null' => TRUE,
'length' => '60',
'default' => '',
),
'pass' => array(
'type' => 'varchar',
'not null' => TRUE,
'length' => '128',
'default' => '',
),
'mail' => array(
'type' => 'varchar',
'not null' => FALSE,
'length' => '254',
'default' => '',
),
'theme' => array(
'type' => 'varchar',
'not null' => TRUE,
'length' => '255',
'default' => '',
),
'signature' => array(
'type' => 'varchar',
'not null' => TRUE,
'length' => '255',
'default' => '',
),
'signature_format' => array(
'type' => 'varchar',
'not null' => FALSE,
'length' => '255',
),
'created' => array(
'type' => 'int',
'not null' => TRUE,
'size' => 'normal',
'default' => '0',
),
'access' => array(
'type' => 'int',
'not null' => TRUE,
'size' => 'normal',
'default' => '0',
),
'login' => array(
'type' => 'int',
'not null' => TRUE,
'size' => 'normal',
'default' => '0',
),
'status' => array(
'type' => 'int',
'not null' => TRUE,
'size' => 'tiny',
'default' => '0',
),
'timezone' => array(
'type' => 'varchar',
'not null' => FALSE,
'length' => '32',
),
'language' => array(
'type' => 'varchar',
'not null' => TRUE,
'length' => '12',
'default' => '',
),
'picture' => array(
'type' => 'int',
'not null' => TRUE,
'size' => 'normal',
'default' => '0',
),
'init' => array(
'type' => 'varchar',
'not null' => FALSE,
'length' => '254',
'default' => '',
),
'data' => array(
'type' => 'blob',
'not null' => FALSE,
'size' => 'big',
),
),
'primary key' => array(
'uid',
),
'unique keys' => array(
'name' => array(
'name',
),
),
'indexes' => array(
'access' => array(
'access',
),
'created' => array(
'created',
),
'mail' => array(
array(
'mail',
'191',
),
),
'picture' => array(
'picture',
),
),
'mysql_character_set' => 'utf8',
));
$connection->insert('users')
->fields(array(
'uid',
'name',
'pass',
'mail',
'theme',
'signature',
'signature_format',
'created',
'access',
'login',
'status',
'timezone',
'language',
'picture',
'init',
'data',
))
->values(array(
'uid' => '0',
'name' => '',
'pass' => '',
'mail' => '',
'theme' => '',
'signature' => '',
'signature_format' => NULL,
'created' => '0',
'access' => '0',
'login' => '0',
'status' => '0',
'timezone' => NULL,
'language' => '',
'picture' => '0',
'init' => '',
'data' => NULL,
))
->values(array(
'uid' => '1',
'name' => 'user',
'pass' => '$S$DTB3PBE0W3Ms6bX8ut6XSaWFigjaI1ManDDSP3QP4k8ou/4UZ517',
'mail' => 'user@drupal7-media.localhost',
'theme' => '',
'signature' => '',
'signature_format' => NULL,
'created' => '1587723957',
'access' => '1594201035',
'login' => '1594037744',
'status' => '1',
'timezone' => 'America/New_York',
'language' => '',
'picture' => '0',
'init' => 'user@drupal7-media.localhost',
'data' => 'b:0;',
))
->values(array(
'uid' => '2',
'name' => 'editor',
'pass' => '$S$D3ijRzIIpF2ZL4vTRb7D9vNq.HL2ifcz/vIUMSz90Pp19bum3duM',
'mail' => 'editor@drupal7-media.localhost',
'theme' => '',
'signature' => '',
'signature_format' => NULL,
'created' => '1588600077',
'access' => '1594201082',
'login' => '1594201082',
'status' => '1',
'timezone' => 'Europe/Paris',
'language' => '',
'picture' => '0',
'init' => 'editor@drupal7-media.localhost',
'data' => 'b:0;',
))
->execute();
