Changes between Initial Version and Version 2 of Ticket #30511


Ignore:
Timestamp:
May 27, 2019, 1:32:28 AM (6 years ago)
Author:
Mariusz Felisiak
Comment:

Thanks for the report. Can you provide more details about your use case? Can you also clarify what are you proposing? e.g.

  • using GENERATED AS IDENTITY instead of serial on PostgreSQL (I don't see much value in this),
  • adding extra fields to the PostgreSQL backends.

In Oracle we used GENERATED AS IDENTITY because there is no other way to create serial-like columns on Oracle which is not the case on PostgreSQL.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #30511

    • Property Cc Michael Kany added
    • Property Summary AutoField with postgres10/11 as generated identityAutoField with postgres10/11 as generated identity.
    • Property Version 2.2master
  • Ticket #30511 – Description

    initial v2  
    55
    66Adjustments only in base.py (line 70ff):
     7{{{
    78data_types = {
    89        'IdentityAutoField': 'integer',
    910        'IdentityBigAutoField': 'bigint',
    10 
     11}}}
    1112and schema.py, def column_sql () (line 178ff):
     13{{{
    1214# Primary key / unique outputs
    1315        if field.primary_key:
     
    1719        elif field.unique:
    1820            sql + = "UNIQUE"
    19 
     21}}}
    2022I can also send our code
    2123
Back to Top