diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-06-25 08:30:50 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-06-25 08:30:50 +0400 |
commit | c7f06bb82097db89b746de503c224011a8c7f0a8 (patch) | |
tree | c2f4118978a58ecc9a87f7633830971427877bd2 /core/DbHelper.php | |
parent | 6526e28b143192611cabfcba4e0d8d5cd92464ad (diff) |
started to handle changes to dimensions, for instance if a new dimension is added the platform should detect this and run an update script. also if a dimension suddenly handles new cases such as conversion it should automatically add a column to log_conversion after a user confirms. Have not tested update and/or installation yet
Diffstat (limited to 'core/DbHelper.php')
-rw-r--r-- | core/DbHelper.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/core/DbHelper.php b/core/DbHelper.php index df616b2cd6..3fc6b482fc 100644 --- a/core/DbHelper.php +++ b/core/DbHelper.php @@ -29,6 +29,17 @@ class DbHelper } /** + * Get list of installed columns in a table + * + * @param string $tableName The name of a table. + * @return array Column names installed + */ + public static function getTableColumns($tableName) + { + return Schema::getInstance()->getTableColumns($tableName); + } + + /** * Creates a new table in the database. * * Example: |