Create column of type double precision[] with liquibase

Lia

How to create column of type double precision[] (array of doubles) with liquibase in postgresql database?

<changeSet id="add t_name table">
    <createTable tableName="t_name">
        ...
        <column name="doubleArray" type="???"/>
        ...
    </createTable>
</changeSet>

Google didn't help, please, if someone knows a solution, I will be very appreciative.

Lia

I finally found the answer with help of my colleague. It seems that liquibase don't know such types, so we need to modify sql query manually:

<createTable tableName="t_name">
    ...
    <column name="doubleArray" type="DOUBLE_ARRAY"/>
    ...
</createTable>

<modifySql dbms="postgresql">
    <replace replace="DOUBLE_ARRAY" with="double precision[][]"/>
</modifySql>

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

PostgreSQL : converting existing double precision column to integer data type

From Dev

ProgrammingError: column cannot be cast automatically to type double precision

From Dev

Update type of a column in liquibase

From Dev

Astyanax Cassandra Double type precision

From Dev

Astyanax Cassandra Double type precision

From Dev

double/float type precision in Python

From Dev

Jasper not returning proper precision of double Postgres column

From Dev

How to increase precision of double type for large numbers?

From Dev

Hive Data Type : Double Precision & Scale

From Dev

Invalid input syntax for type double precision

From Dev

Kendo Grid Column of type Decimal Losing Precision

From Dev

Kendo Grid Column of type Decimal Losing Precision

From Dev

Error: argument of HAVING must be type boolean, not type double precision

From Dev

postgres query on double precision column not returning correct results

From Dev

rails postgres ERROR: invalid input syntax for type double precision

From Dev

rails postgres ERROR: invalid input syntax for type double precision

From Dev

Can not query table with type double precision[] from PostGis with geotools

From Dev

How to solve invalid input syntax for type double precision

From Dev

MySQL double to PostgreSQL double precision works, but default column value does not exist in schema.rb dump

From Dev

MySQL double to PostgreSQL double precision works, but default column value does not exist in schema.rb dump

From Dev

precision of Double and Decimal (in .NET)

From Dev

Float arithemtic and double precision?

From Dev

precision of double in R

From Dev

Double precision of a number

From Dev

Double precision in FORMAT function

From Dev

matlab double precision confusion

From Dev

Random DOUBLE PRECISION between

From Dev

CUFFT Double Precision

From Dev

Farseer and double precision

Related Related

  1. 1

    PostgreSQL : converting existing double precision column to integer data type

  2. 2

    ProgrammingError: column cannot be cast automatically to type double precision

  3. 3

    Update type of a column in liquibase

  4. 4

    Astyanax Cassandra Double type precision

  5. 5

    Astyanax Cassandra Double type precision

  6. 6

    double/float type precision in Python

  7. 7

    Jasper not returning proper precision of double Postgres column

  8. 8

    How to increase precision of double type for large numbers?

  9. 9

    Hive Data Type : Double Precision & Scale

  10. 10

    Invalid input syntax for type double precision

  11. 11

    Kendo Grid Column of type Decimal Losing Precision

  12. 12

    Kendo Grid Column of type Decimal Losing Precision

  13. 13

    Error: argument of HAVING must be type boolean, not type double precision

  14. 14

    postgres query on double precision column not returning correct results

  15. 15

    rails postgres ERROR: invalid input syntax for type double precision

  16. 16

    rails postgres ERROR: invalid input syntax for type double precision

  17. 17

    Can not query table with type double precision[] from PostGis with geotools

  18. 18

    How to solve invalid input syntax for type double precision

  19. 19

    MySQL double to PostgreSQL double precision works, but default column value does not exist in schema.rb dump

  20. 20

    MySQL double to PostgreSQL double precision works, but default column value does not exist in schema.rb dump

  21. 21

    precision of Double and Decimal (in .NET)

  22. 22

    Float arithemtic and double precision?

  23. 23

    precision of double in R

  24. 24

    Double precision of a number

  25. 25

    Double precision in FORMAT function

  26. 26

    matlab double precision confusion

  27. 27

    Random DOUBLE PRECISION between

  28. 28

    CUFFT Double Precision

  29. 29

    Farseer and double precision

HotTag

Archive