PATH:
home
/
lab2454c
/
costbloc.com
/
Modules
/
Ticket
/
Database
/
Migrations
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateCannedMessagesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('canned_messages', function (Blueprint $table) { $table->engine = "InnoDB"; $table->charset = 'utf8mb4'; $table->collation = 'utf8mb4_unicode_ci'; $table->increments('id'); $table->string('title',190)->index('canned_messages_title_index'); $table->text('message'); $table->integer('created_by')->unsigned()->index('canned_messages_created_by_foreign_idx'); $table->string('created_type',12)->index('canned_messages_created_type_index'); $table->timestamp('created_at')->nullable()->default(DB::raw('CURRENT_TIMESTAMP')); $table->timestamp('updated_at')->nullable()->default(DB::raw('NULL ON UPDATE CURRENT_TIMESTAMP')); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('canned_messages'); } }
[-] 2020_04_06_093559_create_thread_replies_table.php
[edit]
[-] 2020_04_06_093559_create_priorities_table.php
[edit]
[+]
..
[-] 2020_04_06_093559_create_thread_statuses_table.php
[edit]
[-] 2021_06_17_131601_create_canned_messages_table.php
[edit]
[-] 2023_04_06_093559_create_threads_table.php
[edit]
[-] 2021_06_17_145137_create_canned_links_table.php
[edit]
[-] 2020_04_06_093559_create_departments_table.php
[edit]