Skip to content

Commit

Permalink
feat(slb-146): remove unused storage interface, constant definition t…
Browse files Browse the repository at this point in the history
…o uppercase
  • Loading branch information
dspachos committed Apr 12, 2024
1 parent 181822e commit 246d84e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 86 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function silverback_autosave_schema() {
'fields' => [
'form_id' => [
'type' => 'varchar_ascii',
'length' => AutosaveEntityFormStorageInterface::silverback_autosave_FORM_ID_LENGTH,
'length' => AutosaveEntityFormStorageInterface::SILVERBACK_AUTOSAVE_FORM_ID_LENGTH,
'not null' => TRUE,
],
// We need the form session id as it is possible that the user opens the
Expand All @@ -31,7 +31,7 @@ function silverback_autosave_schema() {
// case.
'form_session_id' => [
'type' => 'varchar_ascii',
'length' => AutosaveEntityFormStorageInterface::silverback_autosave_FORM_ID_LENGTH,
'length' => AutosaveEntityFormStorageInterface::SILVERBACK_AUTOSAVE_FORM_ID_LENGTH,
'not null' => TRUE,
],
'entity_type_id' => [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ interface AutosaveEntityFormStorageInterface {

const AUTOSAVE_ENTITY_FORM_TABLE = 'silverback_autosave_entity_form';

const silverback_autosave_FORM_ID_LENGTH = 512;
const SILVERBACK_AUTOSAVE_FORM_ID_LENGTH = 512;

/**
* Stores the entity together with the form state.
Expand Down

This file was deleted.

0 comments on commit 246d84e

Please sign in to comment.