mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-13 18:55:52 +00:00
MySQL data type fixed. Changed binary to varbinary.
This commit is contained in:
parent
0441b38599
commit
a293b09ef5
@ -39,16 +39,16 @@ public class MySQLFullPrunedBlockStore extends DatabaseFullPrunedBlockStore {
|
|||||||
")\n";
|
")\n";
|
||||||
|
|
||||||
private static final String CREATE_HEADERS_TABLE = "CREATE TABLE headers (\n" +
|
private static final String CREATE_HEADERS_TABLE = "CREATE TABLE headers (\n" +
|
||||||
" hash binary(28) NOT NULL,\n" +
|
" hash varbinary(28) NOT NULL,\n" +
|
||||||
" chainwork binary(12) NOT NULL,\n" +
|
" chainwork varbinary(12) NOT NULL,\n" +
|
||||||
" height integer NOT NULL,\n" +
|
" height integer NOT NULL,\n" +
|
||||||
" header binary(80) NOT NULL,\n" +
|
" header varbinary(80) NOT NULL,\n" +
|
||||||
" wasundoable tinyint(1) NOT NULL,\n" +
|
" wasundoable tinyint(1) NOT NULL,\n" +
|
||||||
" CONSTRAINT headers_pk PRIMARY KEY (hash) USING BTREE \n" +
|
" CONSTRAINT headers_pk PRIMARY KEY (hash) USING BTREE \n" +
|
||||||
")";
|
")";
|
||||||
|
|
||||||
private static final String CREATE_UNDOABLE_TABLE = "CREATE TABLE undoableblocks (\n" +
|
private static final String CREATE_UNDOABLE_TABLE = "CREATE TABLE undoableblocks (\n" +
|
||||||
" hash binary(28) NOT NULL,\n" +
|
" hash varbinary(28) NOT NULL,\n" +
|
||||||
" height integer NOT NULL,\n" +
|
" height integer NOT NULL,\n" +
|
||||||
" txoutchanges mediumblob,\n" +
|
" txoutchanges mediumblob,\n" +
|
||||||
" transactions mediumblob,\n" +
|
" transactions mediumblob,\n" +
|
||||||
@ -56,7 +56,7 @@ public class MySQLFullPrunedBlockStore extends DatabaseFullPrunedBlockStore {
|
|||||||
")\n";
|
")\n";
|
||||||
|
|
||||||
private static final String CREATE_OPEN_OUTPUT_TABLE = "CREATE TABLE openoutputs (\n" +
|
private static final String CREATE_OPEN_OUTPUT_TABLE = "CREATE TABLE openoutputs (\n" +
|
||||||
" hash binary(32) NOT NULL,\n" +
|
" hash varbinary(32) NOT NULL,\n" +
|
||||||
" `index` integer NOT NULL,\n" +
|
" `index` integer NOT NULL,\n" +
|
||||||
" height integer NOT NULL,\n" +
|
" height integer NOT NULL,\n" +
|
||||||
" value bigint NOT NULL,\n" +
|
" value bigint NOT NULL,\n" +
|
||||||
|
Loading…
x
Reference in New Issue
Block a user