@@ -13,23 +13,25 @@ return new class extends Migration
1313 */
1414 public function up()
1515 {
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) {
1717 $table->integer('pipeline_stage_order')->nullable()->after('pipeline_stage_id');
1818 });
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) {
2120 $table->integer('pipeline_stage_order')->nullable()->after('pipeline_stage_id');
2221 });
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) {
2523 $table->integer('pipeline_stage_order')->nullable()->after('pipeline_stage_id');
2624 });
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) {
2926 $table->integer('pipeline_stage_order')->nullable()->after('pipeline_stage_id');
3027 });
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) {
3335 $table->integer('pipeline_stage_order')->nullable()->after('pipeline_stage_id');
3436 });
3537 }
@@ -41,23 +43,25 @@ return new class extends Migration
4143 */
4244 public function down()
4345 {
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) {
4547 $table->dropColumn('pipeline_stage_order');
4648 });
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) {
4950 $table->dropColumn('pipeline_stage_order');
5051 });
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');
5454 });
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) {
5756 $table->dropColumn('pipeline_stage_order');
5857 });
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) {
6165 $table->dropColumn('pipeline_stage_order');
6266 });
6367 }
0 commit comments