FEATURE #1453: add registration of templates

This commit is contained in:
Michal Kváček
2016-02-18 16:28:32 +01:00
parent 214cc9f3f9
commit 66c9d7907a
9 changed files with 457 additions and 1 deletions
@@ -0,0 +1,35 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class AddNamespaceToTemplatePaths extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('template_paths', function (Blueprint $table) {
$table->string('namespace', 64)
->comment('Namespace used for all templates in this path')
->nullable()
->default(null)
->after('path');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('template_paths', function (Blueprint $table) {
$table->dropColumn('namespace');
});
}
}