Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
acc73fccc7 |
@@ -1,7 +1,7 @@
|
||||
|
||||
SETUP_INFO = dict(
|
||||
name = 'infi.clickhouse_orm',
|
||||
version = '2.1.0.post11',
|
||||
version = '2.1.0.post13',
|
||||
author = 'James Greenhill',
|
||||
author_email = 'fuziontech@gmail.com',
|
||||
|
||||
|
||||
@@ -104,7 +104,7 @@ class MergeTree(Engine):
|
||||
def _build_sql_params(self, db):
|
||||
params = []
|
||||
if self.replica_name:
|
||||
params += ["'%s'" % self.replica_table_path, "'%s'" % self.replica_name]
|
||||
params += ["'%s'" % self.replica_table_path.format(db_name=db.db_name), "'%s'" % self.replica_name]
|
||||
|
||||
# In ClickHouse 1.1.54310 custom partitioning key was introduced
|
||||
# https://clickhouse.tech/docs/en/table_engines/custom_partitioning_key/
|
||||
|
||||
@@ -283,7 +283,7 @@ class MigrationHistory(Model):
|
||||
engine = MergeTree(
|
||||
"applied",
|
||||
("package_name", "module_name"),
|
||||
replica_table_path="/clickhouse/prod/tables/noshard/posthog.infi_clickhouse_orm_migrations",
|
||||
replica_table_path="/clickhouse/{db_name}/tables/noshard/posthog.infi_clickhouse_orm_migrations",
|
||||
replica_name="{replica}-{shard}",
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user