Summary Files Commits Branches @commit @diff @stats
path: root / src / models / JobOffer.php
diff options
context:
space:
mode:
1 files changed, 7 insertions, 7 deletions
-rw-r--r--src/models/JobOffer.php14
diff --git a/src/models/JobOffer.php b/src/models/JobOffer.php
index 3ec4b77..7913edd 100644
--- a/src/models/JobOffer.php
+++ b/src/models/JobOffer.php
@@ -23,18 +23,18 @@ class JobOffer extends DBModel {
*/
public const TABLE_NAME = "job_offers";
- public const TABLE_COLUMNS = array(
- "title " . DB::STRING_TYPE,
- "description " . DB::STRING_TYPE,
- "companyId " . DB::INTEGER_TYPE, // Requires a foreign key
- "salary " . DB::FLOAT_TYPE,
- );
static function __constructStatic() {
+ $columns = array(
+ "title " . DB::STRING_TYPE,
+ "description " . DB::STRING_TYPE,
+ "companyId " . DB::INTEGER_TYPE, // Requires a foreign key
+ "salary " . DB::FLOAT_TYPE,
+ );
$foreignKeys = array(
DB::genFK("companyId", Company::TABLE_NAME, "id")
);
- self::$DB->createTable(self::TABLE_NAME, self::TABLE_COLUMNS, $foreignKeys);
+ self::$DB->createTable(self::TABLE_NAME, $columns, $foreignKeys);
}
/* Create */