Files
CRM/database/migrations/2018_04_13_205231_create_changes_table.php
Kroonk a213a1dba0
Some checks failed
Build & Push Monica Image to Gitea Registry / build-and-push (push) Failing after 9s
refactor: replace custom CRM with Monica fork
2026-05-22 16:19:55 +02:00

31 lines
790 B
PHP

<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateChangesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('changelogs', function (Blueprint $table) {
$table->increments('id');
$table->mediumText('description');
$table->timestamps();
});
Schema::create('changelog_user', function (Blueprint $table) {
$table->integer('changelog_id');
$table->integer('user_id');
$table->boolean('read')->default(0);
$table->boolean('upvote')->default(0);
$table->timestamps();
});
}
}