Skip to content

Initialize kart on pre existing PostGIS database #681

Answered by rcoup
SrNetoChan asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, definitely makes sense.

Currently there's no way to convert a pre-existing table into a Kart table in place, but kart & non-kart tables can happily coexist in the same database — if you add the kart schema into your search path (eg: ALTER DATABASE mydb SET search_path TO "$user", public, kart;) then a query will find both kart & non-kart tables without needing the schema qualifier (first in search_path is preferred).

So, you can convert a table (mytable) that's in the public schema into a Kart table along these lines, if you don't have other related tables referring to fields in mytable. Practise this on a database copy first!

  1. import mytable into the kart repository, so it gets chec…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@marcathian
Comment options

@pfw
Comment options

@SrNetoChan
Comment options

@rcoup
Comment options

@SrNetoChan
Comment options

Answer selected by craigds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants