Lines Matching defs:table
17 * never be passed as $table anywhere!
32 * @var string The table name associated with the schema
34 protected $table = '';
37 * @var Schema the previously valid schema for this table
56 * @param string $table The table's name
57 * @param array $data The defining of the table (basically what get's posted in the schema editor form)
60 public function __construct($table, $data)
64 $this->table = $table;
66 $this->oldschema = new Schema($table, 0);
86 // create the data table if new schema
158 $this->sqlite->query($sql, [$this->table, $this->time, $this->user, $config]);
215 * Write the latest value from an entry in a data_ table to the corresponding multi_table
217 * @param string $table
220 protected function migrateSingleToMulti($table, $colref)
223 $sqlSelect = "SELECT pid, rev, published, col$colref AS value FROM data_$table WHERE latest = 1";
247 $sqlInsert = "INSERT OR REPLACE INTO multi_$table (colref, pid, rev, published, row, value) VALUES $valueString"; // phpcs:ignore
277 // add new column to the data table
307 * Create a completely new data table with no columns yet also create the appropriate
308 * multi value table for the schema
317 $tbl = 'data_' . $this->table;
328 $tbl = 'multi_' . $this->table;
346 * Add an additional column to the existing data table
353 $tbl = 'data_' . $this->table;