From 42a0e2f72fed0a947242b004a0fc6eb4a664174b Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 3 Apr 2021 16:04:28 +0300 Subject: Updated all double quotes to single quotes where possible --- src/models/Company.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/models/Company.php') diff --git a/src/models/Company.php b/src/models/Company.php index 1dfb05e..965531e 100644 --- a/src/models/Company.php +++ b/src/models/Company.php @@ -1,5 +1,5 @@ createTable(self::TABLE_NAME, $columns); } -- cgit v1.3.1-23-gd82d From cc35f9a9e7f57e2afc48767a7f392529d448a072 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 3 Apr 2021 17:56:31 +0300 Subject: By default the company table will now come with three company names --- src/models/Company.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/models/Company.php') 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 */ -- cgit v1.3.1-23-gd82d