Add support for #2006

This commit is contained in:
James Cole
2019-02-08 07:14:45 +01:00
parent d63c9c9aea
commit 311d51464d
10 changed files with 155 additions and 10 deletions

View File

@@ -11,7 +11,7 @@ class ChangesForV4710 extends Migration
*
* @return void
*/
public function down()
public function down(): void
{
Schema::dropIfExists('group_journals');
Schema::dropIfExists('transaction_groups');
@@ -22,7 +22,7 @@ class ChangesForV4710 extends Migration
*
* @return void
*/
public function up()
public function up(): void
{
if (!Schema::hasTable('transaction_groups')) {
Schema::create(

View File

@@ -0,0 +1,37 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class ChangesForV4711 extends Migration
{
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{
//
}
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
Schema::table(
'transaction_journals', function (Blueprint $table) {
$table->dateTimeTz('date')->change();
}
);
Schema::table('preferences', function (Blueprint $table) {
$table->text('data')->nullable()->change();
}
);
}
}