postgres now recommends IDENTITY over SERIAL

This commit is contained in:
Shish 2019-11-25 00:24:45 +00:00
parent a175405210
commit 29994e9613
2 changed files with 4 additions and 3 deletions

View file

@ -11,10 +11,11 @@ jobs:
matrix:
php: ['7.3']
database: ['pgsql', 'mysql', 'sqlite']
runs-on: ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Checkout
uses: actions/checkout@v1
- name: Set up PHP
uses: shivammathur/setup-php@master

View file

@ -96,7 +96,7 @@ class PostgreSQL extends DBEngine
public function scoreql_to_sql(string $data): string
{
$data = str_replace(SCORE::AIPK, "SERIAL PRIMARY KEY", $data);
$data = str_replace(SCORE::AIPK, "INTEGER NOT NULL PRIMARY KEY GENERATED ALWAYS AS IDENTITY", $data);
$data = str_replace(SCORE::INET, "INET", $data);
$data = str_replace(SCORE::BOOL_Y, $this->BOOL_Y, $data);
$data = str_replace(SCORE::BOOL_N, $this->BOOL_N, $data);