Rename posted_on column to created_on

This commit is contained in:
XANTRONIX Development 2024-11-08 16:11:18 -05:00
parent 5e42789043
commit 129d3c19ab
2 changed files with 6 additions and 6 deletions

View file

@ -2,7 +2,7 @@ begin transaction;
create table newsgroup_message ( create table newsgroup_message (
id INTEGER PRIMARY KEY NOT NULL, id INTEGER PRIMARY KEY NOT NULL,
posted_on DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, created_on DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
sender TEXT NOT NULL, sender TEXT NOT NULL,
subject TEXT NOT NULL, subject TEXT NOT NULL,
content TEXT NOT NULL content TEXT NOT NULL

View file

@ -12,7 +12,7 @@ class Database():
sql = """ sql = """
insert into insert into
newsgroup_message newsgroup_message
(posted_on, sender, subject, content) values (?, ?, ?, ?) (created_on, sender, subject, content) values (?, ?, ?, ?)
""" """
self.db.execute(sql, ( self.db.execute(sql, (