// Create the table
public void createTable() {
NSqlQuery query = new NSqlQuery(db.getConnection());
// Create the NoteTag table
logger.log(logger.HIGH, "Creating table NoteTags...");
if (!query.exec("Create table NoteTags (noteGuid varchar, " +
"tagGuid varchar, primary key(noteGuid, tagGuid))"))
logger.log(logger.HIGH, "Table NoteTags creation FAILED!!!");
}
// Drop the table
public void dropTable() {