1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 16:24:04 +00:00

Replace drop with dropIfExists in migrations (#143)

This commit is contained in:
Anton Komarev 2019-09-26 20:02:44 +03:00 committed by Samuel Štancl
parent ee06ff296e
commit cacf239801
2 changed files with 6 additions and 6 deletions

View file

@ -13,7 +13,7 @@ class CreateTenantsTable extends Migration
*
* @return void
*/
public function up()
public function up(): void
{
Schema::create('tenants', function (Blueprint $table) {
$table->string('id', 36)->primary(); // 36 characters is the default uuid length
@ -28,8 +28,8 @@ class CreateTenantsTable extends Migration
*
* @return void
*/
public function down()
public function down(): void
{
Schema::drop('tenants');
Schema::dropIfExists('tenants');
}
}