Compare commits
5 Commits
15b4ec091c
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 348c9843b9 | |||
| acec3b4f9f | |||
| 08a9fc0ad9 | |||
| 14cd2f2c2e | |||
| d199a8507d |
@@ -25,8 +25,8 @@ DB_CONNECTION=mysql
|
|||||||
DB_HOST=127.0.0.1
|
DB_HOST=127.0.0.1
|
||||||
DB_PORT=3306
|
DB_PORT=3306
|
||||||
DB_DATABASE=fsg3kct926qj_quaysoDB
|
DB_DATABASE=fsg3kct926qj_quaysoDB
|
||||||
DB_USERNAME=root
|
DB_USERNAME=fsg3kct926qj_quaysoU
|
||||||
DB_PASSWORD=
|
DB_PASSWORD=18Qu@ng93
|
||||||
|
|
||||||
SESSION_DRIVER=database
|
SESSION_DRIVER=database
|
||||||
SESSION_LIFETIME=120
|
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'
|
||||||
|
]);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
After Width: | Height: | Size: 68 B |
@@ -1 +0,0 @@
|
|||||||
This is a dummy text file.
|
|
||||||
|
Before Width: | Height: | Size: 51 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 517 KiB After Width: | Height: | Size: 200 KiB |
|
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 128 KiB After Width: | Height: | Size: 32 KiB |
|
Before Width: | Height: | Size: 522 KiB After Width: | Height: | Size: 207 KiB |
|
Before Width: | Height: | Size: 70 KiB After Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 75 KiB After Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 73 KiB After Width: | Height: | Size: 43 KiB |
|
Before Width: | Height: | Size: 245 KiB After Width: | Height: | Size: 114 KiB |
|
Before Width: | Height: | Size: 73 KiB After Width: | Height: | Size: 44 KiB |
|
Before Width: | Height: | Size: 210 KiB After Width: | Height: | Size: 100 KiB |
|
Before Width: | Height: | Size: 210 KiB After Width: | Height: | Size: 100 KiB |
|
Before Width: | Height: | Size: 76 KiB After Width: | Height: | Size: 45 KiB |