mirror of
https://github.com/Infinidat/infi.clickhouse_orm.git
synced 2024-11-30 12:33:44 +03:00
51a814732b
# Conflicts: # docs/schema_migrations.md # tests/sample_migrations/0010.py # tests/sample_migrations/0011.py
15 lines
272 B
Python
15 lines
272 B
Python
import datetime
|
|
|
|
from infi.clickhouse_orm import migrations
|
|
from test_migrations import Model3
|
|
|
|
|
|
def forward(database):
|
|
database.insert([
|
|
Model3(date=datetime.date(2016, 1, 4), f1=4, f3=1, f4='test4')
|
|
])
|
|
|
|
|
|
operations = [
|
|
migrations.RunPython(forward)
|
|
] |