backup_permissions-2.0.0/backup_permissions.install
backup_permissions.install
<?php
/**
* @file
* Install, update and uninstall functions for the permission csv export module.
*/
/**
* Implements hook_schema().
*/
function backup_permissions_schema(): array {
$schema['backup_permissions'] = [
'description' => 'Stores the permissions data.',
'fields' => [
'id' => [
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
'description' => 'Primary Key: Unique ID.',
],
'title' => [
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
'description' => 'Backup name.',
],
'created' => [
'type' => 'int',
'not null' => TRUE,
'default' => 0,
'description' => 'Timestamp for when backup was created.',
],
'backup' => [
'type' => 'text',
'size' => 'big',
'not null' => TRUE,
'description' => "Serialized array of role id's",
],
],
'unique keys' => [
'id' => ['id'],
],
'primary key' => ['id'],
];
return $schema;
}
