postgres now recommends IDENTITY over SERIAL
This commit is contained in:
parent
a175405210
commit
29994e9613
2 changed files with 4 additions and 3 deletions
5
.github/workflows/tests.yml
vendored
5
.github/workflows/tests.yml
vendored
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Reference in a new issue