This is the first part of the API. It supports most of contacts, as well as the journal. This PR also brings Monica to Laravel 5.5, as the API required it with the new concept of resources. It needs to run `php artisan migrate` as well as `php artisan passport:keys` to generate the access tokens needed for the API.
29 lines
709 B
PHP
29 lines
709 B
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
class RemoveUnusuedCounters extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::table('contacts', function (Blueprint $table) {
|
|
$table->dropColumn(
|
|
'number_of_notes',
|
|
'number_of_activities',
|
|
'number_of_gifts_ideas',
|
|
'number_of_gifts_received',
|
|
'number_of_gifts_offered',
|
|
'number_of_tasks_in_progress',
|
|
'number_of_tasks_completed'
|
|
);
|
|
});
|
|
}
|
|
}
|