From 8075dde0bc9951b32845e1d02551c335ecab868d Mon Sep 17 00:00:00 2001 From: Syndamia Date: Thu, 1 Apr 2021 12:31:14 +0300 Subject: Made columns in JobOffer and Company models variables inside the static constructor --- src/models/Company.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/models/Company.php') diff --git a/src/models/Company.php b/src/models/Company.php index 0fa72d8..0df31ee 100644 --- a/src/models/Company.php +++ b/src/models/Company.php @@ -13,12 +13,12 @@ class Company extends DBModel { */ public const TABLE_NAME = "companies"; - public const TABLE_COLUMNS = array( - "name " . DB::STRING_TYPE, - ); static function __constructStatic() { - self::$DB->createTable(self::TABLE_NAME, self::TABLE_COLUMNS); + $columns = array( + "name " . DB::STRING_TYPE, + ); + self::$DB->createTable(self::TABLE_NAME, $columns); } /* Create */ -- cgit v1.3.1-26-gb76a