londiste: support table renaming
authorMarko Kreen <markokr@gmail.com>
Thu, 27 Oct 2011 13:28:06 +0000 (16:28 +0300)
committerMarko Kreen <markokr@gmail.com>
Thu, 27 Oct 2011 19:47:45 +0000 (22:47 +0300)
commit63919e092fad60ad776918388ba42794c339d268
tree2f3f4ba7400c049edd86adc2a48cf9a39efd8503
parent3b6dda1bb10478e52ae4686dfd29edc6b66e6d93
londiste: support table renaming

- add .dest_table field to londiste.table_info
- use it for mapping merged tables on leaf
- make handlers use it for sql generaion
- fkey-related functions keep using real table name
26 files changed:
python/londiste.py
python/londiste/compare.py
python/londiste/handler.py
python/londiste/handlers/__init__.py
python/londiste/handlers/bulk.py
python/londiste/handlers/dispatch.py
python/londiste/handlers/multimaster.py
python/londiste/handlers/part.py
python/londiste/handlers/qtable.py
python/londiste/playback.py
python/londiste/repair.py
python/londiste/setup.py
python/londiste/syncer.py
python/londiste/table_copy.py
sql/londiste/expected/londiste_leaf.out
sql/londiste/expected/londiste_merge.out
sql/londiste/expected/londiste_provider.out
sql/londiste/expected/londiste_subscriber.out
sql/londiste/functions/londiste.drop_table_triggers.sql
sql/londiste/functions/londiste.get_table_list.sql
sql/londiste/functions/londiste.handle_fkeys.sql
sql/londiste/functions/londiste.local_add_table.sql
sql/londiste/functions/londiste.local_remove_table.sql
sql/londiste/functions/londiste.local_show_missing.sql
sql/londiste/functions/londiste.upgrade_schema.sql
sql/londiste/structure/tables.sql