workbench_moderation_migrate-1.0.0-alpha4/tests/fixtures/wm-drupal7/workbench_moderation_transitions.php
tests/fixtures/wm-drupal7/workbench_moderation_transitions.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('workbench_moderation_transitions', array(
'fields' => array(
'id' => array(
'type' => 'serial',
'not null' => TRUE,
'size' => 'normal',
'unsigned' => TRUE,
),
'name' => array(
'type' => 'varchar',
'not null' => FALSE,
'length' => '255',
),
'from_name' => array(
'type' => 'varchar',
'not null' => FALSE,
'length' => '255',
),
'to_name' => array(
'type' => 'varchar',
'not null' => FALSE,
'length' => '255',
),
),
'primary key' => array(
'id',
),
'mysql_character_set' => 'utf8',
));
$connection->insert('workbench_moderation_transitions')
->fields(array(
'id',
'name',
'from_name',
'to_name',
))
->values(array(
'id' => '1',
'name' => 'Submit for Review',
'from_name' => 'draft',
'to_name' => 'needs_review',
))
->values(array(
'id' => '2',
'name' => 'Reject',
'from_name' => 'needs_review',
'to_name' => 'draft',
))
->values(array(
'id' => '3',
'name' => 'Publish',
'from_name' => 'needs_review',
'to_name' => 'published',
))
->execute();
