Browse Source

Add datetime to notify_mail table

Vova Tkach 5 years ago
parent
commit
e604ea40d6
3 changed files with 3 additions and 0 deletions
  1. 1 0
      modules/module_index_act_mysql_setup.go
  2. 1 0
      support/migrate/000000014.go
  3. 1 0
      support/schema.sql

+ 1 - 0
modules/module_index_act_mysql_setup.go

@@ -128,6 +128,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 				subject varchar(800) NOT NULL COMMENT 'Email subject',
 				message text NOT NULL COMMENT 'Email body',
 				error text NOT NULL COMMENT 'Send error message',
+				datetime datetime NOT NULL COMMENT 'Creation date/time',
 				status int(1) NOT NULL COMMENT 'Sending status',
 				PRIMARY KEY (id)
 			) ENGINE=InnoDB DEFAULT CHARSET=utf8;`,

+ 1 - 0
support/migrate/000000014.go

@@ -13,6 +13,7 @@ func Migrate_000000014(db *sqlw.DB, host string) error {
 			subject varchar(800) NOT NULL COMMENT 'Email subject',
 			message text NOT NULL COMMENT 'Email body',
 			error text NOT NULL COMMENT 'Send error message',
+			datetime datetime NOT NULL COMMENT 'Creation date/time',
 			status int(1) NOT NULL COMMENT 'Sending status',
 			PRIMARY KEY (id)
 		) ENGINE=InnoDB DEFAULT CHARSET=utf8;`,

+ 1 - 0
support/schema.sql

@@ -30,6 +30,7 @@ CREATE TABLE notify_mail (
 	subject varchar(800) NOT NULL COMMENT 'Email subject',
 	message text NOT NULL COMMENT 'Email body',
 	error text NOT NULL COMMENT 'Send error message',
+	datetime datetime NOT NULL COMMENT 'Creation date/time',
 	status int(1) NOT NULL COMMENT 'Sending status',
 	PRIMARY KEY (id)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;