🛠️ Code cleanup & added many new features #1

Merged
gnmyt merged 121 commits from features/code-cleanup into master 2021-09-02 13:34:00 +00:00
Showing only changes of commit 62a789b7de - Show all commits

View File

@ -82,25 +82,10 @@ public abstract class SQLTable {
* Adds a boolean to the table (without allowNull) * Adds a boolean to the table (without allowNull)
* *
* @param name The name of the boolean you want to add * @param name The name of the boolean you want to add
* @param length The length of the boolean you want to add
* @param defaultValue The default value of the boolean you want to add (leave empty if you don't want to use one)
* @param extras The extras you want to add to the boolean * @param extras The extras you want to add to the boolean
*/ */
protected void bool(String name, int length, String defaultValue, String... extras) { protected void bool(String name, String... extras) {
custom(SQLType.BOOLEAN.getValue(), name, length, false, defaultValue, extras); custom(SQLType.BOOLEAN.getValue(), name, 1, false, "", extras);
}
/**
* Adds a boolean to the table (with allowNull)
*
* @param name The name of the boolean you want to add
* @param length The length of the boolean you want to add
* @param allowNull <code>true</code> if you want to allow a <b>NULL</b> in the field, otherwise <code>false</code>
* @param defaultValue The default value of the boolean you want to add (leave empty if you don't want to use one)
* @param extras The extras you want to add to the boolean
*/
protected void bool(String name, int length, boolean allowNull, String defaultValue, String... extras) {
custom(SQLType.BOOLEAN.getValue(), name, length, allowNull, defaultValue, extras);
} }
/** /**