I have a migration file in landlord ,but it will migrate to tenant #339
-
The migration is provide by sanctum named 'create_personal_access_tokens_table.php' Schema::create('personal_access_tokens', function (Blueprint $table) {
$table->id();
$table->morphs('tokenable');
$table->string('name');
$table->string('token', 64)->unique();
$table->text('abilities')->nullable();
$table->timestamp('last_used_at')->nullable();
$table->timestamps();
}); Rolling back: 2022_03_03_185720_create_product_categories_table
Rolled back: 2022_03_03_185720_create_product_categories_table (15.73ms)
Rolling back: 2022_03_03_185003_create_units_table
Rolled back: 2022_03_03_185003_create_units_table (20.20ms)
Rolling back: 2022_03_02_232208_create_products_table
Rolled back: 2022_03_02_232208_create_products_table (21.61ms)
Rolling back: 2019_12_14_000001_create_personal_access_tokens_table
Rolled back: 2019_12_14_000001_create_personal_access_tokens_table (19.83ms)
Rolling back: 2019_08_19_000000_create_failed_jobs_table
Rolled back: 2019_08_19_000000_create_failed_jobs_table (23.39ms) |
Beta Was this translation helpful? Give feedback.
Answered by
masterix21
Mar 20, 2022
Replies: 1 comment 1 reply
-
You should ignore the Sanctum migrations on tenant: if (! Tenant::checkCurrent()) {
Sanctum::ignoreMigrations();
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
hengchao
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You should ignore the Sanctum migrations on tenant: