@@ -465,6 +465,64 @@ public function test_it_can_drop_userstamps_soft_delete_column()
465465
466466 $ this ->assertNotContains ('deleted_by ' , $ colummns );
467467 }
468+
469+ public function test_it_can_add_userstamps_uuid_columns (): void
470+ {
471+ Schema::create ('userstampable ' , function (Blueprint $ table ) {
472+ $ table ->uuid ('id ' )->primary ();
473+ $ table ->userstampsUuid ();
474+ });
475+
476+ $ colummns = Schema::getColumnListing ('userstampable ' );
477+
478+ $ this ->assertContains ('created_by ' , $ colummns );
479+ $ this ->assertContains ('updated_by ' , $ colummns );
480+ }
481+
482+ public function test_it_can_add_userstamps_uuid_soft_delete_column (): void
483+ {
484+ Schema::create ('userstampable ' , function (Blueprint $ table ) {
485+ $ table ->id ();
486+ $ table ->userstampsUuidSoftDeletes ();
487+ });
488+
489+ $ colummns = Schema::getColumnListing ('userstampable ' );
490+
491+ $ this ->assertContains ('deleted_by ' , $ colummns );
492+ }
493+
494+ public function test_it_can_drop_userstamps_uuid_columns (): void
495+ {
496+ Schema::create ('userstampable ' , function (Blueprint $ table ) {
497+ $ table ->id ();
498+ $ table ->userstampsUuid ();
499+ });
500+
501+ Schema::table ('userstampable ' , function (Blueprint $ table ) {
502+ $ table ->dropUserstampsUuid ();
503+ });
504+
505+ $ colummns = Schema::getColumnListing ('userstampable ' );
506+
507+ $ this ->assertNotContains ('created_by ' , $ colummns );
508+ $ this ->assertNotContains ('updated_by ' , $ colummns );
509+ }
510+
511+ public function test_it_can_drop_userstamps_uuid_soft_delete_column (): void
512+ {
513+ Schema::create ('userstampable ' , function (Blueprint $ table ) {
514+ $ table ->id ();
515+ $ table ->userstampsUuidSoftDeletes ();
516+ });
517+
518+ Schema::table ('userstampable ' , function (Blueprint $ table ) {
519+ $ table ->dropUserstampsUuidSoftDeletes ();
520+ });
521+
522+ $ colummns = Schema::getColumnListing ('userstampable ' );
523+
524+ $ this ->assertNotContains ('deleted_by ' , $ colummns );
525+ }
468526}
469527
470528class Foo extends Model
0 commit comments