@@ 45-59 (lines=15) @@ | ||
42 | ||
43 | $this->schema->create( |
|
44 | $table, |
|
45 | function (Blueprint $table) use ($stream) { |
|
46 | ||
47 | $table->engine = $stream->getConfig('database.engine'); |
|
48 | ||
49 | $table->increments('id'); |
|
50 | $table->integer('sort_order')->nullable(); |
|
51 | $table->datetime('created_at'); |
|
52 | $table->integer('created_by')->nullable(); |
|
53 | $table->datetime('updated_at')->nullable(); |
|
54 | $table->integer('updated_by')->nullable(); |
|
55 | ||
56 | if ($stream->isTrashable()) { |
|
57 | $table->datetime('deleted_at')->nullable(); |
|
58 | } |
|
59 | } |
|
60 | ); |
|
61 | } |
|
62 | ||
@@ 74-85 (lines=12) @@ | ||
71 | ||
72 | $this->schema->create( |
|
73 | $stream->getEntryTranslationsTableName(), |
|
74 | function (Blueprint $table) use ($stream) { |
|
75 | ||
76 | $table->engine = $stream->getConfig('database.engine'); |
|
77 | ||
78 | $table->increments('id'); |
|
79 | $table->integer('entry_id'); |
|
80 | $table->datetime('created_at'); |
|
81 | $table->integer('created_by')->nullable(); |
|
82 | $table->datetime('updated_at')->nullable(); |
|
83 | $table->integer('updated_by')->nullable(); |
|
84 | $table->string('locale')->index(); |
|
85 | } |
|
86 | ); |
|
87 | } |
|
88 |