-
-
Save lastrockstar/57400d6d3a924c274356d26c9c9e022f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function up() { | |
.... | |
$query = $client->createCommand(null) | |
->createTable('report.new_table', | |
[ | |
'column' => 'Nullable(UInt8)', | |
'column2' => 'Nullable(Datetime)', | |
], | |
'engine = MergeTree() PARTITION BY toYYYYMM(column2) ORDER BY column2 SETTINGS index_granularity = 8192' | |
); | |
try { | |
$query->execute(); | |
} | |
catch (Exception $e) { | |
/**Все пропало, Карл!**/ | |
} | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment