Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { Knex } from 'knex'

export async function run(knex: Knex): Promise<void> {
await knex.raw('CREATE EXTENSION IF NOT EXISTS postgis')

const hasColumn = await knex.schema.hasColumn('cidades', 'poligono')
if (!hasColumn) {
await knex.raw(`
Expand Down
Loading