diff options
| author | Samuel Johnson <[email protected]> | 2026-03-17 12:26:14 -0400 |
|---|---|---|
| committer | Samuel Johnson <[email protected]> | 2026-03-17 12:26:14 -0400 |
| commit | d2ecf6f3be46cae2948aa7ce8740f3e39a3f04ee (patch) | |
| tree | b569cf3fc8281ca36d2884506f7dd63400198d04 /internal/dbmigrations.go | |
| parent | 61ba5dcc29a16bb3727209a76ee75fffff037dee (diff) | |
Add search functionality
Diffstat (limited to 'internal/dbmigrations.go')
| -rw-r--r-- | internal/dbmigrations.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/dbmigrations.go b/internal/dbmigrations.go index 41180c7..7ece2b8 100644 --- a/internal/dbmigrations.go +++ b/internal/dbmigrations.go @@ -64,4 +64,9 @@ func Migrate(db *sql.DB, webmaster string, passOne string, passTwo string) { fmt.Fprintf(os.Stderr, "Unable to create comments table: %v\n", err) } } + + _, err := db.Exec("CREATE EXTENSION IF NOT EXISTS pg_trgm;") + if err != nil { + fmt.Fprintf(os.Stderr, "Unable to enable pg_trgm: %v\n", err) + } } |
