DB scheme changed. Added id column

This commit is contained in:
Difrex(Denis Zheleztsov) 2014-05-12 10:33:04 +04:00
parent 28e0231ab3
commit 8e0f5ca987

View File

@ -121,7 +121,7 @@ sub create_base {
my $dbh = DBI->connect( "dbi:SQLite:dbname=$first_sqlite", "", "" );
print "Create database schema\n";
my $q_table
= "create table passwords(name VARCHAR(32), username VARCHAR(32),
= "create table passwords(id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(32), username VARCHAR(32),
resource TEXT, password TEXT)";
$dbh->do($q_table);