Adapt again for mysql

master
blallo 2020-04-28 00:52:12 +02:00
parent 1f435d24a7
commit 62a872f168
Signed by: blallo
GPG Key ID: 0CBE577C9B72DC3F
2 changed files with 7 additions and 1 deletions

View File

@ -17,3 +17,9 @@ CREATE TABLE contatti (
CREATE TABLE ordini (
telefono INT8 PRIMARY KEY REFERENCES contatti (telefono)
);
CREATE TABLE utenti (
nickname VARCHAR(255) NOT NULL,
password VARCHAR(255) NOT NULL,
ruolo VARCHAR(255)
);

View File

@ -9,7 +9,7 @@ import bean.Utente;
public class UtenteDao implements UtenteDaoI {
OracleConnection c = new OracleConnection();
MySqlConnection c = new MySqlConnection();
@Override
public boolean registrazione(String nickname, String password, String ruolo) {