Skip to content

Commit

Permalink
Merge pull request #8 from rimas-kudelis/master
Browse files Browse the repository at this point in the history
Bugfix: make use of table prefix if specified in the configuration.
  • Loading branch information
mdmunir committed Oct 26, 2015
2 parents dbace81 + ce5ead2 commit c44f0d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FileModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class FileModel extends \yii\db\ActiveRecord
*/
public static function tableName()
{
return 'uploaded_file';
return '{{%uploaded_file}}';
}

/**
Expand Down Expand Up @@ -131,4 +131,4 @@ public static function saveAs($file, $path = '@runtime/upload', $directoryLevel
]);
return $model->save() ? $model : false;
}
}
}

0 comments on commit c44f0d9

Please sign in to comment.