Skip to content

Commit

Permalink
Merge pull request EOSIO#2 from vrwio/sql_plugin
Browse files Browse the repository at this point in the history
[EOS] Fix token amount issue
  • Loading branch information
kesar authored Jul 9, 2018
2 parents df1309f + 15ab2f2 commit c3e2e89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/sql_db_plugin/db/actions_table.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ void actions_table::create()
*m_session << "CREATE TABLE tokens("
"account VARCHAR(13),"
"symbol VARCHAR(10),"
"amount REAL(14,4),"
"amount DOUBLE(64,4),"
"FOREIGN KEY (account) REFERENCES accounts(name)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;"; // TODO: other tokens could have diff format.

*m_session << "CREATE INDEX idx_tokens_account ON tokens (account);";
Expand Down

0 comments on commit c3e2e89

Please sign in to comment.