Skip to content
This repository has been archived by the owner on Jun 23, 2021. It is now read-only.

Commit

Permalink
fix for postgresql
Browse files Browse the repository at this point in the history
  • Loading branch information
bupy7 authored May 26, 2020
1 parent 7d638b1 commit eeda9fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/migrations/m150429_155009_create_page_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function up()
'id' => Schema::TYPE_PK,
'title' => Schema::TYPE_STRING . ' NOT NULL',
'alias' => Schema::TYPE_STRING . ' NOT NULL',
'published' => Schema::TYPE_BOOLEAN . ' DEFAULT 1',
'published' => Schema::TYPE_BOOLEAN . ($this->db->driverName === 'pgsql' ? ' DEFAULT TRUE' : ' DEFAULT 1'),
'content' => Schema::TYPE_TEXT,
'title_browser' => Schema::TYPE_STRING,
'meta_keywords' => Schema::TYPE_STRING . '(200)',
Expand Down

0 comments on commit eeda9fe

Please sign in to comment.