62 lines
2.5 KiB
PHP
62 lines
2.5 KiB
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
class CreateSettingsTable extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('settings', function (Blueprint $table) {
|
|
$table->increments('id');
|
|
$table->string('website_logo', 255)->nullable();
|
|
$table->string('fabicon', 255)->nullable();
|
|
$table->longText('organization_name');
|
|
$table->longText('organization_phone')->nullable();
|
|
$table->longText('organization_address');
|
|
$table->longText('copyright_content');
|
|
$table->text('document_name_prefix');
|
|
$table->string('temporary_document_name_prefix', 255)->nullable();
|
|
$table->string('incoming_document_name', 255)->nullable();
|
|
$table->string('out_going_document_name', 255)->nullable();
|
|
$table->string('internal_document_name', 255)->nullable();
|
|
$table->string('notes_document_name', 255)->nullable();
|
|
$table->string('document_sequential_number_start_value', 255)->nullable();
|
|
$table->text('document_random_number_range');
|
|
$table->text('comment_text_limit');
|
|
$table->text('topic_text_limit');
|
|
$table->text('additional_notes_text_limit');
|
|
$table->text('allowed_uploaded_file_type');
|
|
$table->string('registration_number_prefix', 255)->nullable();
|
|
$table->string('outgoing_registration_number_prefix', 255)->nullable();
|
|
$table->string('internal_registration_number_prefix', 255)->nullable();
|
|
$table->string('temporary_registration_number_prefix', 255)->nullable();
|
|
$table->unsignedTinyInteger('is_registration_number_with_date')->default(1);
|
|
$table->unsignedTinyInteger('default_language')->default(1);
|
|
$table->unsignedTinyInteger('data_limit_per_page')->default(25);
|
|
$table->unsignedTinyInteger('dashboard_data_limit')->default(25);
|
|
$table->unsignedInteger('default_disk_quota')->default(500);
|
|
$table->unsignedInteger('user_file_size_limit')->default(5);
|
|
$table->unsignedTinyInteger('notification_refreshing_time')->default(10);
|
|
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('settings');
|
|
}
|
|
}
|