Rename posted_on column to created_on
This commit is contained in:
parent
5e42789043
commit
129d3c19ab
2 changed files with 6 additions and 6 deletions
|
@ -1,11 +1,11 @@
|
|||
begin transaction;
|
||||
|
||||
create table newsgroup_message (
|
||||
id INTEGER PRIMARY KEY NOT NULL,
|
||||
posted_on DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
sender TEXT NOT NULL,
|
||||
subject TEXT NOT NULL,
|
||||
content TEXT NOT NULL
|
||||
id INTEGER PRIMARY KEY NOT NULL,
|
||||
created_on DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
sender TEXT NOT NULL,
|
||||
subject TEXT NOT NULL,
|
||||
content TEXT NOT NULL
|
||||
);
|
||||
|
||||
commit;
|
||||
|
|
|
@ -12,7 +12,7 @@ class Database():
|
|||
sql = """
|
||||
insert into
|
||||
newsgroup_message
|
||||
(posted_on, sender, subject, content) values (?, ?, ?, ?)
|
||||
(created_on, sender, subject, content) values (?, ?, ?, ?)
|
||||
"""
|
||||
|
||||
self.db.execute(sql, (
|
||||
|
|
Loading…
Add table
Reference in a new issue