user crud

This commit is contained in:
2024-07-31 12:59:06 +03:00
parent 0459ed561c
commit be8fea187b
15 changed files with 134 additions and 233 deletions

View File

@ -11,9 +11,8 @@ return new class extends Migration
*/
public function up(): void
{
Schema::create('some', function (Blueprint $table) {
$table->id();
$table->timestamps();
\kernel\App::$db->schema->table('user', function (Blueprint $table) {
$table->integer('status')->default(1);
});
}
@ -22,6 +21,8 @@ return new class extends Migration
*/
public function down(): void
{
Schema::dropIfExists('some');
\kernel\App::$db->schema->table('user', function (Blueprint $table) {
$table->dropColumn(['status']);
});
}
};