This commit is contained in:
f4ilji
2025-03-13 12:17:27 +05:00
parent 2fa59350cf
commit 7a7ecf7b0d
32 changed files with 571 additions and 311 deletions
@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::dropIfExists('applicant_questions');
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::create('applicant_questions', function (Blueprint $table) {
$table->id();
$table->string('first_name');
$table->string('last_name');
$table->string('email');
$table->string('phone');
$table->text('text');
$table->timestamps();
});
}
};
@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::dropIfExists('vacant_positions');
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::create('vacant_positions', function (Blueprint $table) {
$table->id();
$table->string('department');
$table->string('position');
$table->double('fraction');
$table->integer('salary');
$table->string('notice');
$table->timestamps();
});
}
};
@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::dropIfExists('students');
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::create('students', function (Blueprint $table) {
$table->id();
$table->string('department');
$table->string('position');
$table->double('fraction');
$table->integer('salary');
$table->string('notice');
$table->timestamps();
});
}
};
@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::dropIfExists('library_news');
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::create('library_news', function (Blueprint $table) {
$table->id();
$table->string('title');
$table->text('preview_text');
$table->string('category')->nullable();
$table->text('content');
$table->boolean('is_active');
$table->timestamps();
});
}
};
@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::dropIfExists('external_vacancies');
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::create('external_vacancies', function (Blueprint $table) {
$table->id();
$table->string('city');
$table->string('position');
$table->integer('salary')->nullable();
$table->string('conditions')->nullable();
$table->string('contacts');
$table->timestamps();
});
}
};
@@ -0,0 +1,28 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('pages', function (Blueprint $table) {
$table->string('icon')->nullable()->after('searchable');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('pages', function (Blueprint $table) {
$table->dropColumn('icon');
});
}
};