forked from ARCANEDEV/LaravelMessenger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path2016_08_01_000001_create_discussions_table.php
49 lines (43 loc) · 1.17 KB
/
2016_08_01_000001_create_discussions_table.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
use Arcanedev\LaravelMessenger\Bases\Migration;
use Illuminate\Database\Schema\Blueprint;
/**
* Class CreateDiscussionsTable
*
* @author ARCANEDEV <arcanedev.maroc@gmail.com>
*
* @see \Arcanedev\LaravelMessenger\Models\Discussion
*/
class CreateDiscussionsTable extends Migration
{
/* -----------------------------------------------------------------
| Constructor
| -----------------------------------------------------------------
*/
/**
* CreateDiscussionsTable constructor.
*/
public function __construct()
{
parent::__construct();
$this->setTable(
config('messenger.discussions.table', 'discussions')
);
}
/* -----------------------------------------------------------------
| Main Methods
| -----------------------------------------------------------------
*/
/**
* Run the migrations.
*/
public function up()
{
$this->createSchema(function (Blueprint $table) {
$table->increments('id');
$table->string('subject')->nullable();
$table->timestamps();
$table->softDeletes();
});
}
}