wiki:dbeel

Version 27 (modified by cedric, 14 years ago) (diff)

--

back to first page ..

Scripts de creation ONEMA

inserting BDMAP

I already have a dump of the BDMAP somewhere so I'm just saving it and will use it to insert data into the debile.

sauvegarde
cd C:\eda\backup
C:\"Program Files"\PostgreSQL\8.4\bin\pg_dump  -U postgres -p 5433 --schema=bdmap BDMAP> bdmap.bdmap.sql
restauration
C:\"Program Files"\PostgreSQL\8.4\bin\psql -U postgres -d dbeel -p 5433 -f bdmap.bdmap.sql

BDMAP changes by cedric

changeset:2485 download of base modif from Laurent, the 10 files above
changeset:2486 in the script I first include dbeel.establishment and data.provider, and I'm not copying from .csv files anymore, station finished
changeset:2487 finishing changes in electrofishing, changes brought to operation
changeset:2488 finishing changes in operations
changeset:2489 included number in optaxon; added stages to batch.
changeset:2490 optaxon, passtaxon batch.
changeset:2491 lotpeche
changeset:2492 lotpeche mensurationindiv

inserting Western River Basin District (Ireland)

REM sauvegarde cd C:\eda\backup C:\"Program Files"\PostgreSQL\8.4\bin\pg_dump -U postgres -p 5433 --schema=wrbd -T wrbd.irish_catchments -T wrbd.irish_lakes -T wrbd.irish_water_bodies -T wrbd.outline_of_ireland -T wrbd.wfd_lakesegment_we -T wrbd.wfd_riversegment_we -T wrbd.wfd_riversubbasins_we eda2.0> eda2.0.wrbd.sql REM restauration, restoring the whole schema preserves indexes and foreign keys C:\"Program Files"\PostgreSQL\8.4\bin\psql -U postgres -d dbeel -p 5433 -f eda2.0.wrbd.sql C:\"Program Files"\PostgreSQL\8.4\bin\psql -U postgres -d dbeel -p 5433 -c 'create schema wrbd; alter table fish_fi set schema wrbd;alter table operation_op set schema wrbd;alter table