feat: add automatic TimescaleDB extension creation
This commit is contained in:
parent
637bb865b6
commit
3d15464521
1 changed files with 3 additions and 0 deletions
|
@ -12,6 +12,9 @@ module Timeseries
|
|||
def initialize(pg)
|
||||
@pg = pg
|
||||
|
||||
@pg.exec("CREATE EXTENSION IF NOT EXISTS timescaledb")
|
||||
@pg.exec("CREATE EXTENSION IF NOT EXISTS timescaledb_toolkit")
|
||||
|
||||
@pg.exec("CREATE SCHEMA IF NOT EXISTS ts_hoarder")
|
||||
|
||||
@data_sources = CachingTable.new(self, 'sources', 'source')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue