Compare commits

..

5 Commits

33 changed files with 53 additions and 3 deletions
+2 -2
View File
@@ -25,8 +25,8 @@ DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=fsg3kct926qj_quaysoDB
DB_USERNAME=root
DB_PASSWORD=
DB_USERNAME=fsg3kct926qj_quaysoU
DB_PASSWORD=18Qu@ng93
SESSION_DRIVER=database
SESSION_LIFETIME=120
@@ -0,0 +1,51 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::table('users', function (Blueprint $table) {
if (!Schema::hasColumn('users', 'phone')) {
$table->string('phone')->nullable()->after('name');
}
if (!Schema::hasColumn('users', 'user_email')) {
$table->string('user_email')->nullable()->after('phone');
}
if (!Schema::hasColumn('users', 'birth_year')) {
$table->integer('birth_year')->nullable()->after('user_email');
}
if (!Schema::hasColumn('users', 'address')) {
$table->string('address')->nullable()->after('birth_year');
}
if (!Schema::hasColumn('users', 'known_sis')) {
$table->tinyInteger('known_sis')->nullable()->after('address');
}
if (!Schema::hasColumn('users', 'job')) {
$table->string('job')->nullable()->after('known_sis');
}
if (!Schema::hasColumn('users', 'status')) {
$table->tinyInteger('status')->default(1)->after('job');
}
if (!Schema::hasColumn('users', 'spined')) {
$table->tinyInteger('spined')->default(0)->after('status');
}
if (!Schema::hasColumn('users', 'confirmation_string')) {
$table->string('confirmation_string')->nullable()->after('spined');
}
});
}
public function down(): void
{
Schema::table('users', function (Blueprint $table) {
$table->dropColumn([
'phone', 'user_email', 'birth_year', 'address',
'known_sis', 'job', 'status', 'spined', 'confirmation_string'
]);
});
}
};
Binary file not shown.

After

Width:  |  Height:  |  Size: 68 B

-1
View File
@@ -1 +0,0 @@
This is a dummy text file.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 517 KiB

After

Width:  |  Height:  |  Size: 200 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 128 KiB

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 522 KiB

After

Width:  |  Height:  |  Size: 207 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 70 KiB

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 75 KiB

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 73 KiB

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 245 KiB

After

Width:  |  Height:  |  Size: 114 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 73 KiB

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 210 KiB

After

Width:  |  Height:  |  Size: 100 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 210 KiB

After

Width:  |  Height:  |  Size: 100 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

After

Width:  |  Height:  |  Size: 45 KiB