mirror of
https://github.com/Eggbertx/gochan.git
synced 2025-08-27 11:26:22 -07:00
Add is_secure_tripcode column to posts and update gochan-migration to add it
This commit is contained in:
parent
ffac903eb5
commit
4c0ce122ad
16 changed files with 182 additions and 90 deletions
|
@ -97,8 +97,8 @@ func (m *Pre2021Migrator) MigratePosts() error {
|
|||
for rows.Next() {
|
||||
var thread migrationPost
|
||||
if err = rows.Scan(
|
||||
&thread.oldID, &thread.oldBoardID, &thread.oldParentID, &thread.Name, &thread.Tripcode, &thread.Email,
|
||||
&thread.Subject, &thread.Message, &thread.MessageRaw, &thread.Password, &thread.filename,
|
||||
&thread.oldID, &thread.oldBoardID, &thread.oldParentID, &thread.Name, &thread.Tripcode, &thread.IsSecureTripcode,
|
||||
&thread.Email, &thread.Subject, &thread.Message, &thread.MessageRaw, &thread.Password, &thread.filename,
|
||||
&thread.filenameOriginal, &thread.fileChecksum, &thread.filesize, &thread.imageW, &thread.imageH,
|
||||
&thread.thumbW, &thread.thumbH, &thread.IP, &thread.CreatedOn, &thread.autosage,
|
||||
&thread.bumped, &thread.stickied, &thread.locked,
|
||||
|
@ -137,8 +137,8 @@ func (m *Pre2021Migrator) MigratePosts() error {
|
|||
for replyRows.Next() {
|
||||
var reply migrationPost
|
||||
if err = replyRows.Scan(
|
||||
&reply.oldID, &reply.oldBoardID, &reply.oldParentID, &reply.Name, &reply.Tripcode, &reply.Email,
|
||||
&reply.Subject, &reply.Message, &reply.MessageRaw, &reply.Password, &reply.filename,
|
||||
&reply.oldID, &reply.oldBoardID, &reply.oldParentID, &reply.Name, &reply.Tripcode, &reply.IsSecureTripcode,
|
||||
&reply.Email, &reply.Subject, &reply.Message, &reply.MessageRaw, &reply.Password, &reply.filename,
|
||||
&reply.filenameOriginal, &reply.fileChecksum, &reply.filesize, &reply.imageW, &reply.imageH,
|
||||
&reply.thumbW, &reply.thumbH, &reply.IP, &reply.CreatedOn, &reply.autosage,
|
||||
&reply.bumped, &reply.stickied, &reply.locked,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue