Remove code to upgrade unpublished DB schema

pull/1/head
Grégory Oestreicher 2016-12-16 15:00:59 +01:00
parent 6c397577e3
commit 34b92ac82c
1 changed files with 0 additions and 27 deletions

View File

@ -538,33 +538,6 @@ function checkDatabaseStatus( db )
if ( db.version === "" ) { if ( db.version === "" ) {
createLatestDatabase( db ); createLatestDatabase( db );
} }
if ( db.version === "0.1" ) {
db.transaction(
function( tx ) {
tx.executeSql(
"CREATE TABLE IF NOT EXISTS articles (" +
"id INTEGER PRIMARY KEY, " +
"server INTEGER REFERENCES servers(id), " +
"created TEXT, " +
"updated TEXT, " +
"mimetype TEXT, " +
"language TEXT, " +
"readingTime INTEGER DEFAULT 0, " +
"url TEXT, " +
"domain TEXT, " +
"archived INTEGER DEFAULT 0, " +
"starred INTEGER DEFAULT 0, " +
"title TEXT, " +
"previewPicture BLOB, " +
"content TEXT" +
")"
);
db.changeVersion( db.version, DBVERSION );
}
)
}
} }
function createLatestDatabase( db ) function createLatestDatabase( db )