Skip to content

Commit

Permalink
down method on migration
Browse files Browse the repository at this point in the history
Signed-off-by: Dieter Coopman <dieter@deltasolutions.be>
  • Loading branch information
dietercoopman committed Apr 7, 2023
1 parent 7fd6382 commit c1c9e11
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions database/migrations/update_translations_table.php.stub
Expand Up @@ -16,4 +16,12 @@ return new class extends Migration
$table->json('text')->nullable()->change();
});
}

public function down()
{
Schema::table('language_lines', function (Blueprint $table) {
$table->dropColumn(config('translation-loader.locales'));
$table->json('text')->nullable(false)->change();
});
}
};

0 comments on commit c1c9e11

Please sign in to comment.