A
A
Analka2021-09-02 14:23:47
Laravel
Analka, 2021-09-02 14:23:47

How to add cidr field for PostgreSql in migration?

Hello! Maybe someone came across - how to create a cidr field in PostgreSql through migration? ipAddress does not import values ​​like this 2.3.116.0/24

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vyacheslav Plisko, 2021-09-02
@AmdY

$table->addColumn('cird', 'filed_name');
But it's better to look for packages for expanding under postgres, I used postgresify, but for a long time https://packalyst.com/packages/tag/postgresql

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question