Skip to content

Commit

Permalink
chore: remove unused tables (#1759)
Browse files Browse the repository at this point in the history
  • Loading branch information
zmcNotafraid authored Apr 8, 2024
1 parent abbc931 commit 20ee1ea
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 355 deletions.
14 changes: 0 additions & 14 deletions app/models/tx_display_info.rb

This file was deleted.

8 changes: 8 additions & 0 deletions db/migrate/20240408065818_drop_unused_tables.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
class DropUnusedTables < ActiveRecord::Migration[7.0]
def change
drop_table :pool_transaction_entries, if_exists: true
drop_table :old_ckb_transactions, if_exists: true
drop_table :temp_view, if_exists: true
drop_table :tx_display_infos, if_exists: true
end
end
7 changes: 7 additions & 0 deletions db/migrate/20240408075718_rebind_cell_inputs_id_sequence.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
class RebindCellInputsIdSequence < ActiveRecord::Migration[7.0]
def up
execute <<-SQL
ALTER SEQUENCE cell_inputs_id_seq OWNED BY cell_inputs.id;
SQL
end
end
5 changes: 5 additions & 0 deletions db/migrate/20240408082159_drop_cell_inputs_old_tables.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class DropCellInputsOldTables < ActiveRecord::Migration[7.0]
def change
drop_table :cell_inputs_old, if_exists: true
end
end
Loading

0 comments on commit 20ee1ea

Please sign in to comment.