i18n-api/src/main/java/com/blackypaw/mc/i18n/DatabaseLocaleResolver.java
/**
	 * Creates all required tables if they do not yet exist.
	 */
Creates all required tables if they do not yet exist.
Creates all required tables if they do not yet exist .
private void createTables() throws SQLException {
		try ( Statement statement = this.connection.createStatement() ) {
			statement.executeUpdate( "CREATE TABLE IF NOT EXISTS `" + this.localeTable + "` (" +
			                         "`id` int(11) NOT NULL AUTO_INCREMENT," +
			                         "`uuid` VARCHAR(36) NOT NULL," +
			                         "`locale` VARCHAR(36) NOT NULL," +
			                         "PRIMARY KEY(`id`)" +
			                         ") ENGINE=InnoDB CHARACTER SET=utf8;" );
		}
	}
private void createTables ( ) throws SQLException { try ( Statement statement = this . connection . createStatement ( ) ) { statement . executeUpdate ( "CREATE TABLE IF NOT EXISTS `" + this . localeTable + "` (" + "`id` int(11) NOT NULL AUTO_INCREMENT," + "`uuid` VARCHAR(36) NOT NULL," + "`locale` VARCHAR(36) NOT NULL," + "PRIMARY KEY(`id`)" + ") ENGINE=InnoDB CHARACTER SET=utf8;" ) ; } }
Creates all required tables if they do not yet exist.
Creates all required tables if they do not yet exist .