mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-15 21:04:34 +02:00
Use image/* mime type placeholder as filter for footprints attachment type.
This commit is contained in:
parent
767ee59fb8
commit
bddd5b758a
1 changed files with 2 additions and 2 deletions
|
@ -64,8 +64,8 @@ final class Version20190924113252 extends AbstractMigration
|
||||||
//Before we drop the filename and filename_3d properties we have to migrate the data to attachments
|
//Before we drop the filename and filename_3d properties we have to migrate the data to attachments
|
||||||
$this->addSql("INSERT IGNORE INTO `attachment_types` (`id`, `name`, `parent_id`, `comment`, `datetime_added`, `last_modified`, `filetype_filter`)
|
$this->addSql("INSERT IGNORE INTO `attachment_types` (`id`, `name`, `parent_id`, `comment`, `datetime_added`, `last_modified`, `filetype_filter`)
|
||||||
VALUES
|
VALUES
|
||||||
(1000, 'Footprints', NULL, 'Created during automatic migration of the footprint files.', current_timestamp(), current_timestamp(), 'apng, bmp, gif, ico, cur, jpg, jpeg, jfif, pjpeg, pjp, png, svg, webp'),
|
(1000, 'Footprints', NULL, 'Created during automatic migration of the footprint files.', current_timestamp(), current_timestamp(), 'image/*'),
|
||||||
(1001, 'Footprints (3D)', NULL, 'Created during automatic migration of the footprint files.', current_timestamp(), current_timestamp(), 'x3d')
|
(1001, 'Footprints (3D)', NULL, 'Created during automatic migration of the footprint files.', current_timestamp(), current_timestamp(), '.x3d')
|
||||||
");
|
");
|
||||||
|
|
||||||
//Add a attachment for each footprint attachment
|
//Add a attachment for each footprint attachment
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue