Skip to content

Commit 84c1445

Browse files
Added new column to leads table, updated changelog and new types to lead_types table
1 parent d5d4baf commit 84c1445

File tree

4 files changed

+41
-1
lines changed

4 files changed

+41
-1
lines changed

CHANGELOG for v1.x.x.md

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
* [feature] Refactored data grid code
44

5+
* [feature] Add app version in admin ui
6+
57

68
* #244 [fixed] - The modal box should be open if we click on add lead button of the leads page.
79

packages/Webkul/Admin/src/Database/Seeders/LeadTypeSeeder.php

+6-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@ public function run()
1818
DB::table('lead_types')->insert([
1919
[
2020
'id' => 1,
21-
'name' => 'Email',
21+
'name' => 'New Business',
22+
'created_at' => $now,
23+
'updated_at' => $now,
24+
], [
25+
'id' => 2,
26+
'name' => 'Existing Business',
2227
'created_at' => $now,
2328
'updated_at' => $now,
2429
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?php
2+
3+
use Illuminate\Database\Migrations\Migration;
4+
use Illuminate\Database\Schema\Blueprint;
5+
use Illuminate\Support\Facades\Schema;
6+
7+
class AddColumnExpectedCloseDateInLeadsTable extends Migration
8+
{
9+
/**
10+
* Run the migrations.
11+
*
12+
* @return void
13+
*/
14+
public function up()
15+
{
16+
Schema::table('leads', function (Blueprint $table) {
17+
$table->date('expected_close_date')->nullable();
18+
});
19+
}
20+
21+
/**
22+
* Reverse the migrations.
23+
*
24+
* @return void
25+
*/
26+
public function down()
27+
{
28+
Schema::table('leads', function (Blueprint $table) {
29+
$table->dropColumn('expected_close_date');
30+
});
31+
}
32+
}

packages/Webkul/Lead/src/Models/Lead.php

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ class Lead extends Model implements LeadContract
2727
'lead_value',
2828
'status',
2929
'lost_reason',
30+
'expected_close_date',
3031
'closed_at',
3132
'user_id',
3233
'person_id',

0 commit comments

Comments
 (0)