CreateCmReferenceTable.php
3 weeks ago
CreateCollaborationsConnectedTable.php
3 weeks ago
CreateCollaborationsSentTable.php
3 weeks ago
CreateCollaborationsTable.php
3 weeks ago
CreateCommentsSeenTable.php
3 weeks ago
CreateCommentsTable.php
3 weeks ago
CreateFormsDataTable.php
3 weeks ago
CreateFormsTable.php
3 weeks ago
CreateFormsTable.php
28 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Kirki\Database\Migrations; |
| 4 | |
| 5 | use Kirki\Framework\Contracts\Migration; |
| 6 | use Kirki\Framework\Database\Schema\Structure; |
| 7 | use Kirki\Framework\Supports\Facades\Schema; |
| 8 | |
| 9 | class CreateFormsTable implements Migration |
| 10 | { |
| 11 | public function up() |
| 12 | { |
| 13 | Schema::create('kirki_forms', function (Structure $table) { |
| 14 | $table->id(); |
| 15 | $table->unsigned_big_integer('post_id'); |
| 16 | $table->string('form_ele_id'); |
| 17 | $table->string('name')->default('My Kirki Form'); |
| 18 | $table->timestamp('created_at')->use_current(); |
| 19 | $table->datetime('updated_at')->use_current(); |
| 20 | }); |
| 21 | } |
| 22 | |
| 23 | public function down() |
| 24 | { |
| 25 | Schema::drop_if_exists('kirki_forms'); |
| 26 | } |
| 27 | } |
| 28 |