Skip to content

Commit 227fb77

Browse files
committed
feat(extension): adds an extension operation for installing timescale to be used in migrations
1 parent 5cb4f04 commit 227fb77

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

timescale/db/operations.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from django.contrib.postgres.operations import CreateExtension
2+
3+
4+
class TimescaleExtension(CreateExtension):
5+
def __init__(self):
6+
self.name = "timescaledb"

0 commit comments

Comments
 (0)