diff options
By default the company table will now come with three company names
1 files changed, 7 insertions, 0 deletions
| -rw-r--r-- | src/models/Company.php | 7 |
diff --git a/src/models/Company.php b/src/models/Company.php index 965531e..58b1734 100644 --- a/src/models/Company.php +++ b/src/models/Company.php @@ -19,6 +19,13 @@ class Company extends DBModel { 'name ' . DB::STRING_TYPE, ); self::$DB->createTable(self::TABLE_NAME, $columns); + + // Since there is no real way to add companies, this serves as the only official way. + if (sizeof(self::getAllFromDB()) == 0) { + self::insertIntoDB(new Company("MegaCorp")); + self::insertIntoDB(new Company("Cool INC.")); + self::insertIntoDB(new Company("Company Awesome Ltd.")); + } } /* Create */ |
