user crud
This commit is contained in:
@ -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']);
|
||||
});
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user