Added lastPlayed field on MediaFile.
This commit is contained in:
parent
a4013ed365
commit
47590a8c8f
@ -13,7 +13,8 @@ public class MediaFile extends Model {
|
||||
public String filePath;
|
||||
public String fileHash;
|
||||
public String metaInfoSource = TAG_INFO;
|
||||
public Date dateAdded = new Timestamp(new Date().getTime());
|
||||
public Timestamp dateAdded = new Timestamp(new Date().getTime());
|
||||
public Timestamp lastPlayed;
|
||||
public String comment;
|
||||
|
||||
public String toString() { return name; }
|
||||
|
@ -23,6 +23,7 @@ CREATE TABLE media_files (
|
||||
file_hash VARCHAR NOT NULL,
|
||||
meta_info_source VARCHAR NOT NULL, -- 'tag' or 'filesystem'
|
||||
date_added TIMESTAMP NOT NULL DEFAULT NOW(),
|
||||
last_played TIMESTAMP,
|
||||
comment VARCHAR DEFAULT ''
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user