Skip to content

Commit 44f5e6b

Browse files
authored
Merge pull request #2616 from nervosnetwork/testnet
Deploy to mainnet
2 parents f54819b + 20adaaa commit 44f5e6b

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

app/models/contract.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def code_hash_hash_type
7070
# source_url :string
7171
# dep_type :integer
7272
# website :string
73-
# deployed_block_timestamp :bigint
73+
# deployed_block_timestamp :decimal(20, )
7474
# contract_cell_id :bigint
7575
# is_primary :boolean
7676
# is_zero_lock :boolean
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class ChangeDeployedBlockTimestampFromContracts < ActiveRecord::Migration[7.0]
2+
def change
3+
change_column :contracts, :deployed_block_timestamp, :decimal, precision: 20, scale: 0
4+
end
5+
end

db/structure.sql

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1498,7 +1498,7 @@ CREATE TABLE public.contracts (
14981498
source_url character varying,
14991499
dep_type integer,
15001500
website character varying,
1501-
deployed_block_timestamp bigint,
1501+
deployed_block_timestamp numeric(20,0),
15021502
contract_cell_id bigint,
15031503
is_primary boolean,
15041504
is_zero_lock boolean
@@ -6531,4 +6531,5 @@ INSERT INTO "schema_migrations" (version) VALUES
65316531
('20250617013030'),
65326532
('20250617051653'),
65336533
('20250625024348'),
6534-
('20250708075759');
6534+
('20250708075759'),
6535+
('20250708082522');

0 commit comments

Comments
 (0)