@@ 23-32 (lines=10) @@ | ||
20 | * |
|
21 | * @return array |
|
22 | */ |
|
23 | public function getCreateTableLike(TableNodeInterface $old, TableNodeInterface $new) |
|
24 | { |
|
25 | return [ |
|
26 | $this->format( |
|
27 | 'CREATE TABLE {new:schema|q}.{new:table|q} LIKE {old:schema|q}.{old:table|q}', |
|
28 | ['old' => $old, 'new' => $new,] |
|
29 | ), |
|
30 | [], |
|
31 | ]; |
|
32 | } |
|
33 | ||
34 | /** |
|
35 | * @param TableNodeInterface $source |
@@ 53-62 (lines=10) @@ | ||
50 | * |
|
51 | * @return array [sql, bind] |
|
52 | */ |
|
53 | public function getCreateTableLike(TableNodeInterface $old, TableNodeInterface $new) |
|
54 | { |
|
55 | return [ |
|
56 | $this->format( |
|
57 | 'CREATE TABLE {new:schema|q}.{new:table|q} (LIKE {old:schema|q}.{old:table|q})', |
|
58 | ['old' => $old, 'new' => $new,] |
|
59 | ), |
|
60 | [], |
|
61 | ]; |
|
62 | } |
|
63 | ||
64 | /** |
|
65 | * @param TableNodeInterface $source |