Skip to content

Commit

Permalink
Cleaned up
Browse files Browse the repository at this point in the history
  • Loading branch information
rimi-itk committed Oct 9, 2023
1 parent 14d90c2 commit a69ce5a
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 220 deletions.
117 changes: 0 additions & 117 deletions modules/os2forms_digital_post/CHANGELOG.md

This file was deleted.

14 changes: 0 additions & 14 deletions modules/os2forms_digital_post/os2forms_digital_post.install
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,3 @@ use Drupal\os2forms_digital_post\Helper\BeskedfordelerHelper;
function os2forms_digital_post_schema() {
return Drupal::service(BeskedfordelerHelper::class)->schema();
}

/**
* Enable Beskedfordeler module.
*/
function os2forms_digital_post_update_9001(): void {
Drupal::service('module_installer')->install(['beskedfordeler']);
}

/**
* Create beskedfordeler table.
*/
function os2forms_digital_post_update_9002(): void {
Drupal::service(BeskedfordelerHelper::class)->update9002();
}
21 changes: 0 additions & 21 deletions modules/os2forms_digital_post/phpcs.xml.dist

This file was deleted.

20 changes: 0 additions & 20 deletions modules/os2forms_digital_post/phpstan.neon

This file was deleted.

48 changes: 0 additions & 48 deletions modules/os2forms_digital_post/src/Helper/BeskedfordelerHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,52 +149,4 @@ public function schema(): array {
];
}

/**
* Implements hook_update_N().
*
* Creates beskedfordeler table.
*/
public function update9002(): void {
$spec = [
'description' => 'OSForms digital post beskedfordeler',
'fields' => [
'submission_id' => [
'description' => 'The submission id.',
'type' => 'int',
'not null' => TRUE,
],
'message_uuid' => [
'description' => 'The message UUID (formatted with dashes).',
'type' => 'varchar',
'length' => 36,
'not null' => TRUE,
],
'message' => [
'description' => 'The MeMo message (XML).',
'type' => 'text',
'size' => 'medium',
'not null' => TRUE,
],
'receipt' => [
'description' => 'The MeMo message receipt (XML).',
'type' => 'text',
'size' => 'medium',
'not null' => TRUE,
],
'beskedfordeler_message' => [
'description' => 'The Beskedfordeler message (XML).',
'type' => 'text',
'size' => 'medium',
'not null' => FALSE,
],
],
'indexes' => [
'submission_id' => ['submission_id'],
],
'primary key' => ['message_uuid'],
];

$this->database->schema()->createTable(self::TABLE_NAME, $spec);
}

}

0 comments on commit a69ce5a

Please sign in to comment.