Skip to content

Commit 527bdc5

Browse files
[6.x] Fix webauthn migration created by update script (#13769)
1 parent d1c09ee commit 527bdc5

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/UpdateScripts/PublishMigrationForWebauthnTable.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ public function update()
1919
$stub = __DIR__.'/../Console/Commands/stubs/auth/statamic_webauthn_table.php.stub';
2020
$filename = date('Y_m_d_His').'_statamic_webauthn_table.php';
2121

22-
File::put(database_path("migrations/$filename"), File::get($stub));
22+
$contents = File::get($stub);
23+
24+
$contents = str_replace('WEBAUTHN_TABLE', config('statamic.users.tables.webauthn', 'webauthn'), $contents);
25+
26+
File::put(database_path("migrations/$filename"), File::get($contents));
2327

2428
$this->console->line(sprintf(
2529
'Migration <info>database/migrations/%s</info> created successfully.',

0 commit comments

Comments
 (0)