CTOlet / yii2-attachments

Yii2 extension for uploading and attaching the files to the models
66 stars 57 forks source link

Project table prefix not taken into account #20

Closed julien101 closed 9 years ago

julien101 commented 9 years ago

Following the basic installation process, my attachments table does not contain the project prefix specified in my main.php: 'tablePrefix' => 'abc_', The fix is probably simple: 1) Modify File.php: public static function tableName() { return '{{%attach_file}}'; } 2) Fix m150127_040544_add_attachments up() and down() to support tablePrefix

CTOlet commented 9 years ago

On my project according to the my architecture it must be without table prefix. If you need the table prefix you can fork and do that by yourself