Skip to content

Commit 557c7d2

Browse files
committed
Remove _table affix
1 parent 507dbe5 commit 557c7d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

database/migrations/create_fields_table.php.stub

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ return new class extends Migration
88
{
99
public function up()
1010
{
11-
Schema::create('fields_table', function (Blueprint $table) {
11+
Schema::create('fields', function (Blueprint $table) {
1212
$table->ulid('ulid')->primary();
1313
$table->ulid('parent_ulid')->nullable();
1414

@@ -30,7 +30,7 @@ return new class extends Migration
3030

3131
if (config('fields.is_tenant_aware')) {
3232
$tenant = config('fields.tenant_relationship');
33-
Schema::create('field_' . $tenant . '_table', function (Blueprint $table) use ($tenant) {
33+
Schema::create('field_' . $tenant, function (Blueprint $table) use ($tenant) {
3434
$table->foreignUlid($tenant . '_ulid')->constrained(table: $tenant . '_table', column: 'ulid')->cascadeOnUpdate()->cascadeOnDelete();
3535
$table->foreignUlid('field_ulid')->constrained(table: 'fields_table', column: 'ulid')->cascadeOnUpdate()->cascadeOnDelete();
3636

0 commit comments

Comments
 (0)