mirror of
https://github.com/Infinidat/infi.clickhouse_orm.git
synced 2024-11-25 18:23:44 +03:00
Finished Release v0.9.4
This commit is contained in:
commit
d8fc4b6177
|
@ -1,6 +1,10 @@
|
||||||
Change Log
|
Change Log
|
||||||
==========
|
==========
|
||||||
|
|
||||||
|
v0.9.4
|
||||||
|
------
|
||||||
|
- Migrations: when creating a table for a `BufferModel`, create the underlying table too if necessary
|
||||||
|
|
||||||
v0.9.3
|
v0.9.3
|
||||||
------
|
------
|
||||||
- Changed license from PSF to BSD
|
- Changed license from PSF to BSD
|
||||||
|
|
|
@ -17,6 +17,7 @@ install_requires = [
|
||||||
]
|
]
|
||||||
version_file = src/infi/clickhouse_orm/__version__.py
|
version_file = src/infi/clickhouse_orm/__version__.py
|
||||||
description = A Python library for working with the ClickHouse database
|
description = A Python library for working with the ClickHouse database
|
||||||
|
long_description = A Python library for working with the ClickHouse database
|
||||||
console_scripts = []
|
console_scripts = []
|
||||||
gui_scripts = []
|
gui_scripts = []
|
||||||
package_data = []
|
package_data = []
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
from .models import Model
|
from .models import Model, BufferModel
|
||||||
from .fields import DateField, StringField
|
from .fields import DateField, StringField
|
||||||
from .engines import MergeTree
|
from .engines import MergeTree
|
||||||
from .utils import escape
|
from .utils import escape
|
||||||
|
@ -28,6 +28,8 @@ class CreateTable(Operation):
|
||||||
|
|
||||||
def apply(self, database):
|
def apply(self, database):
|
||||||
logger.info(' Create table %s', self.model_class.table_name())
|
logger.info(' Create table %s', self.model_class.table_name())
|
||||||
|
if issubclass(self.model_class, BufferModel):
|
||||||
|
database.create_table(self.model_class.engine.main_model)
|
||||||
database.create_table(self.model_class)
|
database.create_table(self.model_class)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user