FEATURE #1522: add orbit slider

Had to change some things in global widgets management and also in html code widget. Sorry for this ugly commit..
This commit is contained in:
Michal Kváček
2016-04-01 01:59:16 +02:00
parent 6378d17753
commit 2b61709ade
23 changed files with 521 additions and 13 deletions
@@ -0,0 +1,37 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class MakeUserIdNotMandatoryInDirectories extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('directories', function (Blueprint $table) {
$table->integer('user_id', false)
->nullable()
->default(null)
->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('directories', function (Blueprint $table) {
$table->integer('user_id', false)
->nullable(false)
->change();
});
}
}
@@ -0,0 +1,34 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddNameForFiles extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('files', function (Blueprint $table) {
$table->string('name')
->after('file_size')
->comment('Some human readable name of file. May be used in different ways');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('files', function (Blueprint $table) {
$table->dropColumn('name');
});
}
}