Back | Home
الـ Path الحالي: /home/picotech/domains/instantly.picotech.app/public_html/public/uploads/../../database/migrations
الملفات الموجودة في هذا الـ Path:
.
..
2014_10_12_000000_create_users_table.php
2019_08_19_000000_create_failed_jobs_table.php
2020_05_09_071403_create_customers_table.php
2020_05_11_060756_create_customer_email_address_table.php
2020_05_11_065506_create_email_addresses_table.php
2020_05_12_060602_create_plans_table.php
2020_05_12_060814_create_customer_plans_table.php
2020_05_13_104650_create_messages_table.php
2020_05_15_054719_create_drafts_table.php
2020_05_19_064929_create_billing_requests_table.php
2020_05_19_131808_create_customer_settings_table.php
2020_05_28_112247_create_password_reset_table.php
2020_05_30_063350_create_settings_table.php
2020_06_27_140751_create_pages_table.php
2020_07_01_055442_create_contacts_table.php
2020_09_09_052310_create_groups_table.php
2020_09_09_052756_create_contact_groups_table.php
2020_09_13_075554_create_verify_customers_table.php
2021_08_03_140411_create_email_queues_table.php
2021_08_29_075409_create_jobs_table.php
2021_10_14_053316_create_campaigns_table.php
2021_10_20_074529_create_templates_table.php
2021_11_16_175106_create_email_templates_table.php
2021_11_20_160902_create_tickets_table.php
2021_11_20_161036_create_ticket_descriptions_table.php
2021_12_05_165847_create_message_logs_table.php
2021_12_20_055928_create_sending_servers_table.php
2021_12_29_043407_create_unsubscribes_table.php
2022_01_08_122920_create_activities_table.php
2022_01_09_014012_create_forms_table.php
2022_01_10_072826_create_form_details_table.php
2022_01_11_072845_create_form_data_table.php
2022_03_28_044922_add_colunm_in_plans.php
2022_03_29_031341_create_taxes_table.php
2022_06_28_011713_create_domains_table.php
2022_06_30_072751_create_senders_table.php
2022_07_07_065834_create_campaign_templates_table.php
2022_07_21_074308_modify_column_campaigns_table.php
2022_07_28_024036_modify_table_messages.php
2022_07_30_025105_modify_table_email_queues.php
2022_07_30_025413_modify_table_message_logs.php
2022_11_07_071133_add_column_to_senders_table.php
2022_11_09_043403_add_column_domains_table.php
2022_11_16_063656_create_front_contacts_table.php
2022_11_16_064403_create_faqs_table.php
2022_11_17_022141_add_column_sending_type_table.php
2022_11_20_081954_add_column_domain_id_email_queue_table.php
2023_08_22_082223_create_leads_table.php
2023_08_29_091128_create_accelerator_categories_table.php
2023_08_29_112440_create_accelerators_table.php
2023_10_02_085400_add_column_in_sending_server.php
2023_11_06_123927_create_labels_table.php
2023_11_07_084607_change_contact_label_coulmn.php
2023_11_19_065319_add_mail_uid_in_message_logs.php

مشاهدة ملف: 2022_07_28_024036_modify_table_messages.php

<?php

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

class ModifyTableMessages extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('messages', function (Blueprint $table) {
            $table->text('body')->nullable()->change();
            $table->unsignedInteger('template_id')->nullable();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('messages', function (Blueprint $table) {
            $table->text('body')->nullable(false)->change();
            $table->dropColumn('template_id');
        });
    }
}