Skip to content

Commit

Permalink
Fix default value of alt text column.
Browse files Browse the repository at this point in the history
  • Loading branch information
kimisgold committed Sep 18, 2024
1 parent 3d7be27 commit c7aaca1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion application/migrations/20240917160000_addFileAltText.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ class addFileAltText extends Omeka_Db_Migration_AbstractMigration
{
public function up()
{
$this->db->query("ALTER TABLE {$this->db->File} ADD `alt_text` mediumtext collate utf8_unicode_ci NOT NULL");
$this->db->query("ALTER TABLE {$this->db->File} ADD `alt_text` text collate utf8_unicode_ci");
}
}
2 changes: 1 addition & 1 deletion application/schema/files.sql
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ CREATE TABLE IF NOT EXISTS `%PREFIX%files` (
`added` timestamp NOT NULL DEFAULT '2000-01-01 00:00:00',
`stored` tinyint(1) NOT NULL default '0',
`metadata` mediumtext collate utf8_unicode_ci NOT NULL,
`alt_text` mediumtext collate utf8_unicode_ci NOT NULL,
`alt_text` mediumtext collate utf8_unicode_ci,
PRIMARY KEY (`id`),
KEY `item_id` (`item_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

0 comments on commit c7aaca1

Please sign in to comment.