diff --git a/lib/classes/record/adapter.php b/lib/classes/record/adapter.php index b6836afe7c..331af3c5bd 100644 --- a/lib/classes/record/adapter.php +++ b/lib/classes/record/adapter.php @@ -1163,25 +1163,6 @@ class record_adapter implements RecordInterface, cache_cacheableInterface ['status' => bindec($status), 'record_id' => $this->record_id] ); - $status = strrev($status); - $length = strlen($status); - $sqlValues = []; - for ($i = 4; $i < $length; $i++) { - $sqlValues[] = join(',', array( - 'null', - $connection->quote($this->getRecordId()), - $connection->quote($i), - $connection->quote($status[$i]) - )); - } - $sql = "REPLACE INTO status (id, record_id, name, value)" - . " VALUES (" . join('),(', $sqlValues) . ")"; - $stmt = $connection->prepare($sql); - - $stmt->execute(); - - $stmt->closeCursor(); - $this->delete_data_from_cache(self::CACHE_STATUS); $this->dispatch(RecordEvents::STATUS_CHANGED, new StatusChangedEvent($this)); diff --git a/lib/conf.d/bases_structure.xml b/lib/conf.d/bases_structure.xml index e230b69424..dfe17f3fe7 100644 --- a/lib/conf.d/bases_structure.xml +++ b/lib/conf.d/bases_structure.xml @@ -2447,74 +2447,6 @@ InnoDB - - - - id - int(10) unsigned - - auto_increment - - - - - record_id - int(11) unsigned - - - 0 - - - - name - int(2) unsigned - - - - - - - value - tinyint(1) unsigned - - - - - - - - - PRIMARY - PRIMARY - - id - - - - value - INDEX - - value - - - - record_id - INDEX - - record_id - - - - unique - UNIQUE - - record_id - name - - - - InnoDB -