Be more specific about pathing, minor improvement to system settings table

This commit is contained in:
Sam Georges 2014-10-18 13:39:33 +11:00
parent fff64a30a7
commit 2689a3e669
2 changed files with 3 additions and 4 deletions

View File

@ -83,7 +83,7 @@ class BrandSettings extends Model
'secondary-color-dark' => self::get('secondary_color_dark', self::SECONDARY_DARK),
]);
$parser->parse(File::get(__DIR__.'/brandsettings/custom.less').self::get('custom_css'));
$parser->parse(File::get(PATH_BASE.'/modules/backend/models/brandsettings/custom.less').self::get('custom_css'));
$css = $parser->getCss();
return $css;

View File

@ -11,9 +11,8 @@ class DbSystemSettings extends Migration
{
$table->engine = 'InnoDB';
$table->increments('id');
$table->string('item');
$table->text('value')->nullable();
$table->index(['item']);
$table->string('item')->nullable()->index();
$table->mediumtext('value')->nullable();
});
}