Migration squash and db transfer [Finish #34706685]

Squashed commit of the following:

commit d6db1a70687f60fe8b509f1fa0ee84fe75ddd6c4
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Aug 24 13:35:01 2012 +0200

    Updated personas dbs again

commit 50c18d248d2db112b8830070a489bd60e47fbb56
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Aug 24 12:03:21 2012 +0200

    updated docu

commit 35b7b19e54b7f999ea46b06fd635e776da7deae0
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Aug 24 11:59:03 2012 +0200

    removed fkey constraints for wiki_page versions

commit 5eba7d55929b99dc208f33fab9329bdb3d28ed0d
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Aug 24 11:35:54 2012 +0200

    Updated pg version of empty media_archieve db

commit 5688ca9d295caba7b82d161670b6974ce7183c52
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Aug 24 10:35:09 2012 +0200

    updated docu

commit a7a1c98b3bab9ef7a69f34590dff9c9bb7d4c45d
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Aug 24 10:33:21 2012 +0200

    added not null constraint for user_id on media_resources

commit 686619bc971a7483d006ad39d6e3e6714f20bb26
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Aug 24 10:12:59 2012 +0200

    Deleting some keywords and outputting progress of transfer

commit 71f4ad91f24d03319927af501b8645bec917c76e
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Aug 24 08:59:24 2012 +0200

    minor update of docu

commit c0b157c0da1e5b7f1ecfa44e0d1d3291d97fc9fa
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Aug 24 08:57:08 2012 +0200

    Added queries to clean database

commit b1d6a7f6daf6a050f3f41296495e78be5f1f946c
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Aug 24 08:44:24 2012 +0200

    Updated (not)null kyes and synced with docu

commit 21e2019b360d1282c1d4b327a286734fc0ec3602
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Aug 24 08:20:50 2012 +0200

    Cleaned old migrations and MigrationHelper partially

commit 76265b93aa701bcc60f4388c4655cc8c4607699e
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Aug 24 08:12:22 2012 +0200

    Added madek:db:transfer task and refactored DBHelper

commit 32d7d98afdfdcb8a62fbcbb887c23cff4ad57de5
Author: Thomas Schank <DrTom@schank.ch>
Date:   Thu Aug 23 21:26:32 2012 +0200

    simple db transfer function

commit 48c287d071bc6f84f80c06d553dc6992d86a46e4
Author: Ramón Cahenzli <rca@psy-q.ch>
Date:   Thu Aug 23 10:51:59 2012 +0200

    Using rerun for slow tests as well.

commit 05b8e3b329180d1ee5717569729c790012ffeeea
Author: Thomas Schank <DrTom@schank.ch>
Date:   Thu Aug 23 09:48:53 2012 +0200

    mysql personas db with lifted restrictions for cucumber test

commit 745826d55f1d115cc1c8730125f11096c794b635
Author: Thomas Schank <DrTom@schank.ch>
Date:   Wed Aug 22 20:29:03 2012 +0200

    lifted constraints on wiki page

commit cdd239c335c45baa8e46bbe1f1f509b077c057be
Author: Thomas Schank <DrTom@schank.ch>
Date:   Wed Aug 22 14:29:01 2012 +0200

    new variant of the personas db for postgresql

commit 8e4b6f44026d030225d0b9a2df1557a10ef8ee5f
Author: Thomas Schank <DrTom@schank.ch>
Date:   Wed Aug 22 14:15:22 2012 +0200

    updated personas db

commit ce7f0b539c65dfb35e00e920acb45138361828f1
Author: Thomas Schank <DrTom@schank.ch>
Date:   Wed Aug 22 14:14:16 2012 +0200

    ahhhh yet one more

commit 48746afcf703110e1a9c0d9bb013f3159cb426d8
Author: Thomas Schank <DrTom@schank.ch>
Date:   Wed Aug 22 14:12:40 2012 +0200

    fixed a bug in the migrations

commit 435423f9b7fc76ff2c92034a8ce78c7a9fbda280
Author: Thomas Schank <DrTom@schank.ch>
Date:   Wed Aug 22 13:15:27 2012 +0200

    Fixing a spec on pg

commit 5d264b851bdddd3e8470b3f8bea2984d2b61f032
Author: Thomas Schank <DrTom@schank.ch>
Date:   Wed Aug 22 13:00:10 2012 +0200

    Hopefully fixing last bug

commit d37ddb8590a58cc7c16767214cddf9b4f111d7c5
Author: Thomas Schank <DrTom@schank.ch>
Date:   Wed Aug 22 12:38:54 2012 +0200

    2 fixes left

commit 6c1f366f05639df3c768e5d98681cb8ee1bbe78e
Author: Thomas Schank <DrTom@schank.ch>
Date:   Wed Aug 22 11:25:17 2012 +0200

    more fixes

commit 20ccdde40955122a782f188fea2fca3996cf97f7
Author: Thomas Schank <DrTom@schank.ch>
Date:   Wed Aug 22 10:35:18 2012 +0200

    fixing things....

commit 47b75307449ce2cc3e7f7ab64204d05cbcefa5fb
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Aug 21 18:25:16 2012 +0200

    updated wikipages migration and docu

commit b3eec41b818cbb961dae5cb141aeb9cead7718f1
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Aug 21 18:11:29 2012 +0200

    added wikipages TODO referenes?

commit d0b080efc36755dfc03429eee732800217912253
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Aug 21 18:05:47 2012 +0200

    added usage terms

commit 421e5104e5c85d23a0e37d76993111b9afefd548
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Aug 21 18:01:01 2012 +0200

    added settings

commit 504134ef35be523e80eec16e3ba45a6d67729175
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Aug 21 17:41:05 2012 +0200

    added favirites

commit d1a6f3be622716333c07c42b03f5b009ddece14b
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Aug 21 17:06:52 2012 +0200

    added keywords

commit fd3455e08166a6946fd2bb89bb459cd54f19e05e
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Aug 21 16:53:35 2012 +0200

    added meta_key_definitions

commit 43956a9a3b634920a6026e16dbc05cca8650bc85
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Aug 21 15:43:53 2012 +0200

    added meta_contexts

commit 8fe582dafc6f75d2614668a0bd8b0d65c16e4b57
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Aug 21 15:35:52 2012 +0200

    adde meta context groups

commit c2c9e79ca98195ab8699d12b4972233615318f14
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Aug 21 15:30:39 2012 +0200

    added meta_keys_meta_terms

commit 945bec372327118e8a60afa3587c476ce6af8087
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Aug 21 15:09:30 2012 +0200

    added permission migrations

commit c7e0163c5f27ea8f5650b4193027a594af906be1
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Aug 21 14:53:15 2012 +0200

    added meta_datum and meta_keys

commit d9bde4c406eed214bd7f8a7810cfe1a23344dd3e
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Aug 21 14:32:25 2012 +0200

    added copyrights

commit 785c825533a4966d5b1f3289d2e43c6f14a6d39a
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Aug 21 14:28:14 2012 +0200

    added fulltext

commit 3bb82b421fdf18583e0c6f377643935b836ade47
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Aug 21 14:18:42 2012 +0200

    added previews

commit ab2a0fac5d13f7f74903c5f4f0d366833b7aa983
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Aug 21 14:05:53 2012 +0200

    added media_resource_arcs

commit 27839fd12f4b932e71a511b60933864997a09f35
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Aug 21 13:51:52 2012 +0200

    added media_resources

commit d5db64b4eb0dac75aa47211e069b96843f84adbd
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Aug 21 12:19:12 2012 +0200

    added media_files

commit cf27e357f60832361fcf6469786b689a53685db2
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Aug 21 12:02:52 2012 +0200

    added 004 groups_users

commit 25ba196eba1021bb8240888dad5a71da7680f507
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Aug 21 11:55:42 2012 +0200

    003 groups

commit 57c3369eda852da04220ab9eb2f292ed19a464d4
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Aug 21 11:39:32 2012 +0200

    added user migration

commit 608e4d8de8a7642d51ea3e20e645d497f1bde7e5
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Aug 21 11:36:31 2012 +0200

    Added foreigner gem

commit 267ad4db30d59b2627e8c5da99cb2d2216e08a18
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Aug 21 11:32:40 2012 +0200

    Refactored Gemfile

commit 273c5e021ef16d16c4ae37b368531896537ec664
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Aug 21 11:08:24 2012 +0200

    001 people migration

commit b90fb95bea44c67e6a0bc2b4aa8c8a9b0ffbd66b
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Aug 21 10:29:45 2012 +0200

    fixed old migrations