workbench_moderation_migrate-1.0.0-alpha4/tests/fixtures/wm-drupal7/role_permission.php
tests/fixtures/wm-drupal7/role_permission.php
<?php
// phpcs:ignoreFile
/**
* @file
* A database agnostic dump for testing purposes.
*
* This file was generated by the Drupal 9.2.7 db-tools.php script.
*/
use Drupal\Core\Database\Database;
$connection = Database::getConnection();
$connection->schema()->createTable('role_permission', array(
'fields' => array(
'rid' => array(
'type' => 'int',
'not null' => TRUE,
'size' => 'normal',
'unsigned' => TRUE,
),
'permission' => array(
'type' => 'varchar',
'not null' => TRUE,
'length' => '128',
'default' => '',
),
'module' => array(
'type' => 'varchar',
'not null' => TRUE,
'length' => '255',
'default' => '',
),
),
'primary key' => array(
'rid',
'permission',
),
'indexes' => array(
'permission' => array(
'permission',
),
),
'mysql_character_set' => 'utf8',
));
$connection->insert('role_permission')
->fields(array(
'rid',
'permission',
'module',
))
->values(array(
'rid' => '1',
'permission' => 'access content',
'module' => 'node',
))
->values(array(
'rid' => '2',
'permission' => 'access content',
'module' => 'node',
))
->execute();
