mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-23 04:32:50 -04:00
extremely minor code duplication removed
This commit is contained in:
parent
602ff13238
commit
1631efe386
@ -100,10 +100,12 @@ namespace MCGalaxy.SQL {
|
||||
string priKey = null;
|
||||
for (int i = 0; i < columns.Length; i++) {
|
||||
ColumnDesc col = columns[i];
|
||||
sql.Append(col.Column).Append(' ');
|
||||
|
||||
if (col.Type == ColumnType.Bool) {
|
||||
sql.Append(col.Column).Append(' ').Append("TINYINT");
|
||||
sql.Append("TINYINT");
|
||||
} else {
|
||||
sql.Append(col.Column).Append(' ').Append(col.FormatType());
|
||||
sql.Append(col.FormatType());
|
||||
}
|
||||
|
||||
// When the primary key isn't autoincrement, we use the same form as mysql
|
||||
|
Loading…
x
Reference in New Issue
Block a user