add option to upload file when creating a table

This commit is contained in:
2018-08-12 22:38:08 +02:00
parent 7ae41b368e
commit 13b22f7cb4
5 changed files with 82 additions and 15 deletions
+1
View File
@@ -83,6 +83,7 @@ class Row extends BaseModel
*/
public static function allocateRowIDs($count)
{
if ($count == 0) return null;
$last = \DB::selectOne("SELECT multi_nextval('global_row_id_seq', ?) AS last_id;", [$count])->last_id;
return [$last - $count + 1, $last];
}