Lines Matching defs:col
68 foreach ($schema->getColumns() as $col) {
70 if (get_class($col->getType()) == Page::class) {
71 $this->updateColumnID($schema, $col, $old, $new, true);
72 } elseif (get_class($col->getType()) == Lookup::class) {
73 $this->updateColumnLookup($schema, $col, $old, $new);
75 } elseif ($col->getType() instanceof Media) {
76 $this->updateColumnID($schema, $col, $old, $new);
144 * @param Column $col
149 protected function updateColumnID(Schema $schema, Column $col, $old, $new, $hashes = false)
151 $colref = $col->getColref();
154 if ($col->isMulti()) {
164 SET col$colref = REPLACE(col$colref, ?, ?)
165 WHERE col$colref LIKE ?
172 if ($col->getType() instanceof Lookup) {
186 * @param Column $col
190 protected function updateColumnLookup(Schema $schema, Column $col, $old, $new)
192 $tconf = $col->getType()->getConfig();
196 $this->updateColumnID($schema, $col, $old, $new);