3
0
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:
Kalpesh Parmar 2015-07-20 12:30:35 +01:00
parent 0441b38599
commit a293b09ef5

View File

@ -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" +