mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
Separate idx_mime_type index creation from column creation
This commit is contained in:
parent
223475a351
commit
d1b419f0a2
1 changed files with 4 additions and 1 deletions
|
|
@ -89,7 +89,7 @@ class file extends ModuleObject
|
|||
{
|
||||
return true;
|
||||
}
|
||||
if(!$oDB->isColumnExists('files', 'mime_type'))
|
||||
if(!$oDB->isColumnExists('files', 'mime_type') || !$oDB->isIndexExists('files', 'idx_mime_type'))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
@ -191,6 +191,9 @@ class file extends ModuleObject
|
|||
if(!$oDB->isColumnExists('files', 'mime_type'))
|
||||
{
|
||||
$oDB->addColumn('files', 'mime_type', 'varchar', '60', '', true, 'file_size');
|
||||
}
|
||||
if(!$oDB->isIndexExists('files', 'idx_mime_type'))
|
||||
{
|
||||
$oDB->addIndex('files', 'idx_mime_type', 'mime_type');
|
||||
}
|
||||
if(!$oDB->isColumnExists('files', 'original_type'))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue