Skip to content

Commit

Permalink
Merge pull request #275 from deanblackborough/v3.17,0
Browse files Browse the repository at this point in the history
Transfer support for Budget Pro
  • Loading branch information
deanblackborough authored Nov 9, 2023
2 parents 9236e75 + 339addd commit 7753604
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

The complete changelog for the Costs to Expect REST API, our changelog follows the format defined at https://keepachangelog.com/en/1.0.0/

## [v3.17.0] - 2023-11-08
### Added
- Added `transfer` support to the `budget-pro` item type.

## [v3.16.1] - 2023-10-13
### Added
- Added additional authentication tests.
Expand Down
4 changes: 2 additions & 2 deletions config/api/app/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
declare(strict_types=1);

return [
'version'=> 'v3.16.1',
'version'=> 'v3.17.0',
'prefix' => 'v3',
'release_date' => '2023-10-13',
'release_date' => '2023-11-09',
'changelog' => [
'api' => '/v3/changelog',
'markdown' => 'https://github.com/costs-to-expect/api/blob/master/CHANGELOG.md'
Expand Down
2 changes: 1 addition & 1 deletion config/api/item-type-budget-pro/validation-patch.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
'category' => [
'sometimes',
'string',
Rule::in(['income', 'fixed', 'flexible', 'savings']),
Rule::in(['income', 'fixed', 'flexible', 'savings', 'transfer']),
],
'start_date' => [
'sometimes',
Expand Down
2 changes: 1 addition & 1 deletion config/api/item-type-budget-pro/validation-post.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
'category' => [
'required',
'string',
Rule::in(['income', 'fixed', 'flexible', 'savings']),
Rule::in(['income', 'fixed', 'flexible', 'savings', 'transfer']),
],
'start_date' => [
'required',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
public function up()
{
Schema::table('item_type_budget_pro', function (Blueprint $table) {

DB::statement("
ALTER TABLE item_type_budget_pro MODIFY category ENUM('income', 'fixed', 'flexible', 'savings', 'transfer') NOT NULL
");

});
}

public function down()
{
// No down
}
};

0 comments on commit 7753604

Please sign in to comment.