@@ -13,23 +13,25 @@ return new class extends Migration
13
13
*/
14
14
public function up()
15
15
{
16
- Schema::table(config('laravel-crm.db_table_prefix').'quote_products ', function (Blueprint $table) {
16
+ Schema::table(config('laravel-crm.db_table_prefix').'leads ', function (Blueprint $table) {
17
17
$table->integer('pipeline_stage_order')->nullable()->after('pipeline_stage_id');
18
18
});
19
-
20
- Schema::table(config('laravel-crm.db_table_prefix').'order_products', function (Blueprint $table) {
19
+ Schema::table(config('laravel-crm.db_table_prefix').'deals', function (Blueprint $table) {
21
20
$table->integer('pipeline_stage_order')->nullable()->after('pipeline_stage_id');
22
21
});
23
-
24
- Schema::table(config('laravel-crm.db_table_prefix').'invoice_lines', function (Blueprint $table) {
22
+ Schema::table(config('laravel-crm.db_table_prefix').'quotes', function (Blueprint $table) {
25
23
$table->integer('pipeline_stage_order')->nullable()->after('pipeline_stage_id');
26
24
});
27
-
28
- Schema::table(config('laravel-crm.db_table_prefix').'delivery_products', function (Blueprint $table) {
25
+ Schema::table(config('laravel-crm.db_table_prefix').'orders', function (Blueprint $table) {
29
26
$table->integer('pipeline_stage_order')->nullable()->after('pipeline_stage_id');
30
27
});
31
-
32
- Schema::table(config('laravel-crm.db_table_prefix').'purchase_order_lines', function (Blueprint $table) {
28
+ Schema::table(config('laravel-crm.db_table_prefix').'invoices', function (Blueprint $table) {
29
+ $table->integer('pipeline_stage_order')->nullable()->after('pipeline_stage_id');
30
+ });
31
+ Schema::table(config('laravel-crm.db_table_prefix').'deliveries', function (Blueprint $table) {
32
+ $table->integer('pipeline_stage_order')->nullable()->after('pipeline_stage_id');
33
+ });
34
+ Schema::table(config('laravel-crm.db_table_prefix').'purchase_orders', function (Blueprint $table) {
33
35
$table->integer('pipeline_stage_order')->nullable()->after('pipeline_stage_id');
34
36
});
35
37
}
@@ -41,23 +43,25 @@ return new class extends Migration
41
43
*/
42
44
public function down()
43
45
{
44
- Schema::table(config('laravel-crm.db_table_prefix').'quote_products ', function (Blueprint $table) {
46
+ Schema::table(config('laravel-crm.db_table_prefix').'leads ', function (Blueprint $table) {
45
47
$table->dropColumn('pipeline_stage_order');
46
48
});
47
-
48
- Schema::table(config('laravel-crm.db_table_prefix').'order_products', function (Blueprint $table) {
49
+ Schema::table(config('laravel-crm.db_table_prefix').'deals', function (Blueprint $table) {
49
50
$table->dropColumn('pipeline_stage_order');
50
51
});
51
-
52
- Schema::table(config('laravel-crm.db_table_prefix').'invoice_lines', function (Blueprint $table) {
53
- $table->dropColumn('pipeline_stage_order');;
52
+ Schema::table(config('laravel-crm.db_table_prefix').'quotes', function (Blueprint $table) {
53
+ $table->dropColumn('pipeline_stage_order');
54
54
});
55
-
56
- Schema::table(config('laravel-crm.db_table_prefix').'delivery_products', function (Blueprint $table) {
55
+ Schema::table(config('laravel-crm.db_table_prefix').'orders', function (Blueprint $table) {
57
56
$table->dropColumn('pipeline_stage_order');
58
57
});
59
-
60
- Schema::table(config('laravel-crm.db_table_prefix').'purchase_order_lines', function (Blueprint $table) {
58
+ Schema::table(config('laravel-crm.db_table_prefix').'invoices', function (Blueprint $table) {
59
+ $table->dropColumn('pipeline_stage_order');
60
+ });
61
+ Schema::table(config('laravel-crm.db_table_prefix').'deliveries', function (Blueprint $table) {
62
+ $table->dropColumn('pipeline_stage_order');
63
+ });
64
+ Schema::table(config('laravel-crm.db_table_prefix').'purchase_orders', function (Blueprint $table) {
61
65
$table->dropColumn('pipeline_stage_order');
62
66
});
63
67
}
0 commit comments