mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
First attempt at displaying a group.
This commit is contained in:
@@ -33,15 +33,28 @@ class ChangesForV450 extends Migration
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
// split up for sqlite compatibility
|
||||
Schema::table(
|
||||
'transactions',
|
||||
function (Blueprint $table) {
|
||||
static function (Blueprint $table) {
|
||||
$table->dropColumn('foreign_amount');
|
||||
|
||||
}
|
||||
);
|
||||
|
||||
Schema::table(
|
||||
'transactions',
|
||||
static function (Blueprint $table) {
|
||||
// cannot drop foreign keys in SQLite:
|
||||
if ('sqlite' !== config('database.default')) {
|
||||
$table->dropForeign('transactions_foreign_currency_id_foreign');
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
Schema::table(
|
||||
'transactions',
|
||||
static function (Blueprint $table) {
|
||||
$table->dropColumn('foreign_currency_id');
|
||||
}
|
||||
);
|
||||
|
@@ -37,19 +37,53 @@ class ChangesForV474 extends Migration
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
// split up for sqlite compatibility.
|
||||
Schema::table(
|
||||
'import_jobs',
|
||||
function (Blueprint $table) {
|
||||
static function (Blueprint $table) {
|
||||
|
||||
// cannot drop foreign keys in SQLite:
|
||||
if ('sqlite' !== config('database.default')) {
|
||||
$table->dropForeign('import_jobs_tag_id_foreign');
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
Schema::table(
|
||||
'import_jobs',
|
||||
static function (Blueprint $table) {
|
||||
$table->dropColumn('provider');
|
||||
|
||||
}
|
||||
);
|
||||
|
||||
Schema::table(
|
||||
'import_jobs',
|
||||
static function (Blueprint $table) {
|
||||
$table->dropColumn('stage');
|
||||
|
||||
}
|
||||
);
|
||||
|
||||
Schema::table(
|
||||
'import_jobs',
|
||||
static function (Blueprint $table) {
|
||||
$table->dropColumn('transactions');
|
||||
|
||||
}
|
||||
);
|
||||
|
||||
Schema::table(
|
||||
'import_jobs',
|
||||
static function (Blueprint $table) {
|
||||
$table->dropColumn('errors');
|
||||
|
||||
}
|
||||
);
|
||||
|
||||
Schema::table(
|
||||
'import_jobs',
|
||||
static function (Blueprint $table) {
|
||||
$table->dropColumn('tag_id');
|
||||
|
||||
}
|
||||
@@ -65,7 +99,7 @@ class ChangesForV474 extends Migration
|
||||
{
|
||||
Schema::table(
|
||||
'import_jobs',
|
||||
function (Blueprint $table) {
|
||||
static function (Blueprint $table) {
|
||||
$table->string('provider', 50)->after('file_type')->default('');
|
||||
$table->string('stage', 50)->after('status')->default('');
|
||||
$table->longText('transactions')->after('extended_status')->nullable();
|
||||
|
Reference in New Issue
Block a user