migrate005.sql 1.1 KB

1234567891011121314151617181920212223
  1. drop table contract_free_fee;
  2. alter table order_free_fee change order_id contract_store_id bigint not null;
  3. rename table order_free_fee to contract_free_fee;
  4. alter table order_deduction_fee change order_id contract_store_id bigint not null;
  5. rename table order_deduction_fee to contract_fixed_fee;
  6. alter table order_room_info change contract_room contract_room_type_id bigint not null;
  7. alter table order_room_info change room_info_id room_id bigint not null;
  8. alter table order_room_info drop column order_id;
  9. rename table order_room_info to contract_reserve_room;
  10. alter table contract_store drop foreign key FKpq2qnjfvfws7t5tkg0rmaav5s;
  11. drop index UK_urox4q0pglct5s5bu63sipar on contract_store;
  12. drop index UK_c4rnnp0gkygxyxc477we4x5gq on contract_store;
  13. alter table contract_store add constraint FKpq2qnjfvfws7t5tkg0rmaav5s foreign key (contract_id) references contract (id);
  14. drop index FK6vc2qkse1t8gnh0k5589foko5 on contract_room_type;
  15. drop index FKiq6khr7imvc2bgbq6pgbmxnvb on contract_room_type;
  16. update menu set path = '/contractViolationList' where id = 23871;
  17. delete from menu where id = 637;