Skip to content

Commit

Permalink
fix update script not properly migrating metadata to media table
Browse files Browse the repository at this point in the history
  • Loading branch information
brookgagnon committed Jan 19, 2025
1 parent 4eb70e0 commit a74d18e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion updates/20240321.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ public function items()
public function run()
{
// Add metadata columns to media table directly.
$metadataColumns = $this->models->mediametadata('get_all');
$this->db->query('SELECT * FROM media_metadata_columns');
$metadataColumns = $this->db->assoc_list();
foreach ($metadataColumns as $metadataColumn) {
switch ($metadataColumn['type']) {
case 'text':
Expand Down

0 comments on commit a74d18e

Please sign in to comment.