mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 17:24:03 +00:00
Replace drop with dropIfExists in migrations (#143)
This commit is contained in:
parent
ee06ff296e
commit
cacf239801
2 changed files with 6 additions and 6 deletions
|
|
@ -13,7 +13,7 @@ class CreateTenantsTable extends Migration
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function up()
|
public function up(): void
|
||||||
{
|
{
|
||||||
Schema::create('tenants', function (Blueprint $table) {
|
Schema::create('tenants', function (Blueprint $table) {
|
||||||
$table->string('id', 36)->primary(); // 36 characters is the default uuid length
|
$table->string('id', 36)->primary(); // 36 characters is the default uuid length
|
||||||
|
|
@ -28,8 +28,8 @@ class CreateTenantsTable extends Migration
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function down()
|
public function down(): void
|
||||||
{
|
{
|
||||||
Schema::drop('tenants');
|
Schema::dropIfExists('tenants');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ class CreateDomainsTable extends Migration
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function up()
|
public function up(): void
|
||||||
{
|
{
|
||||||
Schema::create('domains', function (Blueprint $table) {
|
Schema::create('domains', function (Blueprint $table) {
|
||||||
$table->string('domain', 255)->primary();
|
$table->string('domain', 255)->primary();
|
||||||
|
|
@ -28,8 +28,8 @@ class CreateDomainsTable extends Migration
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function down()
|
public function down(): void
|
||||||
{
|
{
|
||||||
Schema::drop('domains');
|
Schema::dropIfExists('domains');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue