Closed dwins closed 13 years ago
We could actually use "CREATE OR REPLACE." http://www.postgresql.org/docs/9.0/static/sql-createtable.html
as you wish : $ git diff diff --git a/src/main/scala/FileSystem.scala b/src/main/scala/FileSystem.scala index 9c8992d..83f1d28 100644 --- a/src/main/scala/FileSystem.scala +++ b/src/main/scala/FileSystem.scala @@ -67,6 +67,7 @@ class FileSystem(out: java.io.File) extends Mapnik2GeoTools.Output { val cleanName = name.replaceAll("[\s-]", "_"); val wrapper = """
not tested : $ git diff diff --git a/src/main/scala/FileSystem.scala b/src/main/scala/FileSystem.scala index 9c8992d..63ffb1c 100644 --- a/src/main/scala/FileSystem.scala +++ b/src/main/scala/FileSystem.scala @@ -67,7 +67,7 @@ class FileSystem(out: java.io.File) extends Mapnik2GeoTools.Output { val cleanName = name.replaceAll("[\s-]", "_"); val wrapper = """
From the mailing list:
The sql script generates many "create table" statements. It could be usefull to add "drop table if exist" before in case of update of the map.