1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 12:44:02 +00:00

Replace drop with dropIfExists in migrations

This commit is contained in:
antonkomarev 2019-09-26 19:54:11 +03:00
parent ee06ff296e
commit 13fd7d80fe
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');
}
}

View file

@ -13,7 +13,7 @@ class CreateDomainsTable extends Migration
*
* @return void
*/
public function up()
public function up(): void
{
Schema::create('domains', function (Blueprint $table) {
$table->string('domain', 255)->primary();
@ -28,8 +28,8 @@ class CreateDomainsTable extends Migration
*
* @return void
*/
public function down()
public function down(): void
{
Schema::drop('domains');
Schema::dropIfExists('domains');
}
}