Skip to content

Commit 18b373d

Browse files
authored
added compileTables
1 parent f89f9e4 commit 18b373d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/Database/Schema/Grammar.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,18 @@ public function compileRename(Blueprint $blueprint, Fluent $command)
363363
return "sp_rename {$from}, ".$this->wrapTable($command->to);
364364
}
365365

366+
public function compileTables()
367+
{
368+
return "select
369+
o.name as name,
370+
user_name(o.uid) as [schema],
371+
cast(reserved_pages(db_id(), o.id) as bigint) * @@maxpagesize as size_bytes
372+
from sysobjects o
373+
where o.type = 'U'
374+
order by o.name
375+
";
376+
}
377+
366378
/**
367379
* Create the column definition for a char type.
368380
*

0 commit comments

Comments
 (0)