Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add command to recreate tables #12407

Merged
merged 35 commits into from
Sep 6, 2020

Conversation

zeripath
Copy link
Contributor

@zeripath zeripath commented Aug 2, 2020

Provides new command: gitea doctor recreate-table which will recreate
db tables and copy the old data in to the new table.

This function can be used to remove the old warning of struct defaults being
out of date.

Fix #8868 - at least partially - there is a bug in Xorm see #12407 (comment)
Fix #3265
Fix #8994

Signed-off-by: Andrew Thornton art27@cantab.net

Provides new command: `gitea doctor recreate-table` which will recreate
db tables and copy the old data in to the new table.

This function can be used to remove the old warning of struct defaults being
out of date.

Fix go-gitea#8868
Fix go-gitea#3265
Fix go-gitea#8894

Signed-off-by: Andrew Thornton <art27@cantab.net>
@zeripath zeripath added the type/feature Completely new functionality. Can only be merged if feature freeze is not active. label Aug 2, 2020
@zeripath zeripath added this to the 1.13.0 milestone Aug 2, 2020
Signed-off-by: Andrew Thornton <art27@cantab.net>
Signed-off-by: Andrew Thornton <art27@cantab.net>
Signed-off-by: Andrew Thornton <art27@cantab.net>
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Aug 2, 2020
@zeripath
Copy link
Contributor Author

zeripath commented Aug 2, 2020

Of course mssql is being awkward so let's see if shortening the temp table name a little helps

Signed-off-by: Andrew Thornton <art27@cantab.net>
Signed-off-by: Andrew Thornton <art27@cantab.net>
Signed-off-by: Andrew Thornton <art27@cantab.net>
Signed-off-by: Andrew Thornton <art27@cantab.net>
@silverwind
Copy link
Member

silverwind commented Aug 9, 2020

Gave it a try:

  1. ./gitea doctor --list does not list the new command
  2. It does not seem to resolve the default is NULL on MariaDB spam for me.

For example. Table topic spams this:

2020/08/09 22:19:33 ...rm/session_schema.go:360:Sync2() [W] Table topic Column name db default is 'NULL', struct default is
2020/08/09 22:19:33 ...rm/session_schema.go:360:Sync2() [W] Table topic Column repo_count db default is NULL, struct default is
2020/08/09 22:19:33 ...rm/session_schema.go:360:Sync2() [W] Table topic Column created_unix db default is NULL, struct default is
2020/08/09 22:19:33 ...rm/session_schema.go:360:Sync2() [W] Table topic Column updated_unix db default is NULL, struct default is
Log of `./gitea doctor recreate-table topic`
2020/08/09 22:18:44 ...dules/setting/git.go:93:newGit() [I] Git Version: 2.28.0, Wire Protocol Version 2 Enabled
2020/08/09 22:18:44 ...rm/session_schema.go:25:Ping() [I] PING DATABASE mysql
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `TABLE_NAME` from `INFORMATION_SCHEMA`.`TABLES` WHERE `TABLE_SCHEMA`=? and `TABLE_NAME`=? [git version] - 381.079µs
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? AND `COLUMN_NAME` = ? [git version id] - 288.87µs
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? AND `COLUMN_NAME` = ? [git version version] - 195.356µs
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `id`, `version` FROM `version` WHERE `id`=? LIMIT 1 [1] - 186.859µs
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `TABLE_NAME`, `ENGINE`, `AUTO_INCREMENT`, `TABLE_COMMENT` from `INFORMATION_SCHEMA`.`TABLES` WHERE `TABLE_SCHEMA`=? AND (`ENGINE`='MyISAM' OR `ENGINE` = 'InnoDB' OR `ENGINE` = 'TokuDB') [git] - 880.123µs
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git user] - 3.071974ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git user] - 231.486µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column full_name db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column keep_email_private db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column email_notifications_preference db default is ''enabled'', struct default is 'enabled'
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column passwd_hash_algo db default is ''pbkdf2'', struct default is 'pbkdf2'
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column login_type db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column login_name db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column type db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column location db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column website db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column rands db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column salt db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column language db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column description db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column updated_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column last_login_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column last_repo_visibility db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column is_active db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column is_admin db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column allow_git_hook db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column allow_import_local db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column use_custom_avatar db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column num_followers db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column num_stars db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column num_repos db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column num_teams db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column num_members db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column diff_view_style db default is '''', struct default is ''
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column theme db default is '''', struct default is ''
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git public_key] - 2.177607ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git public_key] - 258.059µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table public_key Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table public_key Column updated_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git access_token] - 2.188677ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git access_token] - 252.056µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table access_token Column uid db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table access_token Column name db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table access_token Column token_hash db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table access_token Column token_salt db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table access_token Column token_last_eight db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table access_token Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table access_token Column updated_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git repository] - 2.322656ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git repository] - 250.274µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repository Column owner_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repository Column owner_name db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repository Column description db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repository Column website db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repository Column original_service_type db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repository Column original_url db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repository Column default_branch db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repository Column num_watches db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repository Column num_stars db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repository Column num_forks db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repository Column num_issues db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repository Column num_closed_issues db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repository Column num_pulls db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repository Column num_closed_pulls db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repository Column is_private db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repository Column is_empty db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repository Column is_archived db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repository Column is_mirror db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repository Column fork_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repository Column template_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repository Column topics db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repository Column avatar db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repository Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repository Column updated_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git deploy_key] - 2.225777ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git deploy_key] - 260.882µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table deploy_key Column key_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table deploy_key Column repo_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table deploy_key Column name db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table deploy_key Column fingerprint db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table deploy_key Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table deploy_key Column updated_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git collaboration] - 2.14061ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git collaboration] - 270.821µs
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git access] - 2.102952ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git access] - 203.742µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table access Column user_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table access Column repo_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table access Column mode db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git upload] - 2.073242ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git upload] - 203.706µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table upload Column uuid db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table upload Column name db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git watch] - 2.160929ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git watch] - 223.422µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table watch Column user_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table watch Column repo_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git star] - 2.198481ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git star] - 290.365µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table star Column uid db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table star Column repo_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git follow] - 2.189354ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git follow] - 243.894µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table follow Column user_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table follow Column follow_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git action] - 2.352225ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git action] - 287.269µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table action Column user_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table action Column op_type db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table action Column act_user_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table action Column repo_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table action Column comment_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table action Column ref_name db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table action Column content db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table action Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git issue] - 2.410063ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git issue] - 216.224µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table issue Column repo_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table issue Column index db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table issue Column poster_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table issue Column original_author db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table issue Column original_author_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table issue Column name db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table issue Column content db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table issue Column milestone_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table issue Column priority db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table issue Column is_closed db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table issue Column is_pull db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table issue Column num_comments db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table issue Column ref db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table issue Column deadline_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table issue Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table issue Column updated_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table issue Column closed_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git pull_request] - 2.075187ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git pull_request] - 231.25µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table pull_request Column type db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table pull_request Column status db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table pull_request Column conflicted_files db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table pull_request Column commits_ahead db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table pull_request Column commits_behind db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table pull_request Column issue_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table pull_request Column index db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table pull_request Column head_repo_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table pull_request Column base_repo_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table pull_request Column head_branch db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table pull_request Column base_branch db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table pull_request Column merge_base db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table pull_request Column has_merged db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table pull_request Column merged_commit_id db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table pull_request Column merger_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table pull_request Column merged_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git comment] - 2.166392ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git comment] - 221.392µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column type db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column poster_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column original_author db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column original_author_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column issue_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column label_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column old_milestone_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column milestone_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column assignee_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column removed_assignee db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column resolve_doer_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column old_title db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column new_title db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column old_ref db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column new_ref db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column dependent_issue_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column commit_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column line db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column tree_path db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column content db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column patch db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column updated_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column commit_sha db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column review_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column invalidated db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column ref_repo_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column ref_issue_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column ref_comment_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column ref_action db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column ref_is_pull db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git attachment] - 2.0476ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git attachment] - 188.182µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table attachment Column uuid db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table attachment Column issue_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table attachment Column release_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table attachment Column comment_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table attachment Column name db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table attachment Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git label] - 2.040774ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git label] - 218.391µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table label Column repo_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table label Column org_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table label Column name db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table label Column description db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table label Column color db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table label Column num_issues db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table label Column num_closed_issues db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git issue_label] - 2.09755ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git issue_label] - 202.354µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table issue_label Column issue_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table issue_label Column label_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git milestone] - 2.50046ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git milestone] - 200.411µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table milestone Column repo_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table milestone Column name db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table milestone Column content db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table milestone Column is_closed db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table milestone Column num_issues db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table milestone Column num_closed_issues db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table milestone Column completeness db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table milestone Column deadline_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table milestone Column closed_date_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git mirror] - 2.042461ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git mirror] - 230.068µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table mirror Column repo_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table mirror Column interval db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table mirror Column updated_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table mirror Column next_update_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git release] - 2.011388ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git release] - 239.453µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table release Column repo_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table release Column publisher_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table release Column tag_name db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table release Column original_author db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table release Column original_author_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table release Column lower_tag_name db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table release Column target db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table release Column title db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table release Column sha1 db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table release Column num_commits db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table release Column note db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table release Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git login_source] - 2.10627ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git login_source] - 193.229µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table login_source Column type db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table login_source Column name db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table login_source Column cfg db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table login_source Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table login_source Column updated_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git webhook] - 2.245304ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git webhook] - 287.209µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table webhook Column repo_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table webhook Column org_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table webhook Column is_system_webhook db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table webhook Column url db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table webhook Column signature db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table webhook Column http_method db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table webhook Column content_type db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table webhook Column secret db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table webhook Column events db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table webhook Column is_ssl db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table webhook Column is_active db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table webhook Column hook_task_type db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table webhook Column meta db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table webhook Column last_status db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table webhook Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table webhook Column updated_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git hook_task] - 2.257405ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git hook_task] - 227.448µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table hook_task Column repo_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table hook_task Column hook_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table hook_task Column uuid db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table hook_task Column type db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table hook_task Column url db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table hook_task Column signature db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table hook_task Column payload_content db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table hook_task Column http_method db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table hook_task Column content_type db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table hook_task Column event_type db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table hook_task Column is_ssl db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table hook_task Column is_delivered db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table hook_task Column delivered db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table hook_task Column is_succeed db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table hook_task Column request_content db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table hook_task Column response_content db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git team] - 2.365769ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git team] - 189.099µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table team Column org_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table team Column lower_name db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table team Column name db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table team Column description db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table team Column authorize db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table team Column num_repos db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table team Column num_members db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git org_user] - 2.069519ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git org_user] - 207.206µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table org_user Column uid db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table org_user Column org_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table org_user Column is_public db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git team_user] - 2.360021ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git team_user] - 266.62µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table team_user Column org_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table team_user Column team_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table team_user Column uid db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git team_repo] - 2.109562ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git team_repo] - 326.967µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table team_repo Column org_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table team_repo Column team_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table team_repo Column repo_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git notice] - 2.188129ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git notice] - 212.384µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table notice Column type db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table notice Column description db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table notice Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git email_address] - 2.011749ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git email_address] - 444.316µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table email_address Column is_activated db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git notification] - 2.321335ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git notification] - 215.05µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table notification Column commit_id db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table notification Column comment_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git issue_user] - 1.968828ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git issue_user] - 196.215µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table issue_user Column uid db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table issue_user Column issue_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table issue_user Column is_read db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table issue_user Column is_mentioned db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git lfs_meta_object] - 2.077243ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git lfs_meta_object] - 203.193µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table lfs_meta_object Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git two_factor] - 1.98444ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git two_factor] - 237.96µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table two_factor Column uid db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table two_factor Column secret db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table two_factor Column scratch_salt db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table two_factor Column scratch_hash db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table two_factor Column last_used_passcode db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table two_factor Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table two_factor Column updated_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git gpg_key] - 2.17852ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git gpg_key] - 336.183µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table gpg_key Column primary_key_id db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table gpg_key Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table gpg_key Column expired_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table gpg_key Column added_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table gpg_key Column emails db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table gpg_key Column can_sign db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table gpg_key Column can_encrypt_comms db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table gpg_key Column can_encrypt_storage db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table gpg_key Column can_certify db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git gpg_key_import] - 2.2517ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git gpg_key_import] - 219.753µs
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git repo_unit] - 2.268211ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git repo_unit] - 275.835µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repo_unit Column repo_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repo_unit Column type db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repo_unit Column config db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repo_unit Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git repo_redirect] - 1.97606ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git repo_redirect] - 224.382µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repo_redirect Column owner_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repo_redirect Column redirect_repo_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git external_login_user] - 2.252413ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git external_login_user] - 228.266µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table external_login_user Column raw_data db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table external_login_user Column provider db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table external_login_user Column email db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table external_login_user Column name db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table external_login_user Column first_name db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table external_login_user Column last_name db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table external_login_user Column nick_name db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table external_login_user Column description db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table external_login_user Column avatar_url db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table external_login_user Column location db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table external_login_user Column access_token db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table external_login_user Column access_token_secret db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table external_login_user Column refresh_token db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table external_login_user Column expires_at db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git protected_branch] - 2.210216ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git protected_branch] - 245.858µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table protected_branch Column repo_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table protected_branch Column branch_name db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table protected_branch Column enable_whitelist db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table protected_branch Column whitelist_user_i_ds db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table protected_branch Column whitelist_team_i_ds db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table protected_branch Column merge_whitelist_user_i_ds db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table protected_branch Column merge_whitelist_team_i_ds db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table protected_branch Column status_check_contexts db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table protected_branch Column approvals_whitelist_user_i_ds db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table protected_branch Column approvals_whitelist_team_i_ds db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table protected_branch Column protected_file_patterns db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table protected_branch Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table protected_branch Column updated_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git user_open_id] - 2.107617ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git user_open_id] - 263.708µs
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git issue_watch] - 2.283128ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git issue_watch] - 239.704µs
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git commit_status] - 2.145378ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git commit_status] - 443.264µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table commit_status Column index db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table commit_status Column repo_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table commit_status Column target_url db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table commit_status Column description db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table commit_status Column context_hash db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table commit_status Column context db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table commit_status Column creator_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table commit_status Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table commit_status Column updated_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git stopwatch] - 2.312202ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git stopwatch] - 212.747µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table stopwatch Column issue_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table stopwatch Column user_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table stopwatch Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git tracked_time] - 2.076068ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git tracked_time] - 293.849µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table tracked_time Column issue_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table tracked_time Column user_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table tracked_time Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git deleted_branch] - 2.262474ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git deleted_branch] - 251.005µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table deleted_branch Column deleted_by_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table deleted_branch Column deleted_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git repo_indexer_status] - 2.029878ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git repo_indexer_status] - 240.799µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repo_indexer_status Column repo_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repo_indexer_status Column commit_sha db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git issue_dependency] - 2.168477ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git issue_dependency] - 224.96µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table issue_dependency Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table issue_dependency Column updated_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git lfs_lock] - 2.169119ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git lfs_lock] - 257.891µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table lfs_lock Column path db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table lfs_lock Column created db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git reaction] - 2.069751ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git reaction] - 238.745µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table reaction Column comment_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table reaction Column original_author db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table reaction Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git issue_assignees] - 1.90995ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git issue_assignees] - 246.533µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table issue_assignees Column assignee_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table issue_assignees Column issue_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git u2f_registration] - 2.01561ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git u2f_registration] - 343.104µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table u2f_registration Column name db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table u2f_registration Column user_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table u2f_registration Column raw db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table u2f_registration Column counter db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table u2f_registration Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table u2f_registration Column updated_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git team_unit] - 2.109571ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git team_unit] - 209.236µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table team_unit Column org_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table team_unit Column team_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table team_unit Column type db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git review] - 2.181511ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git review] - 205.812µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table review Column type db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table review Column reviewer_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table review Column original_author db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table review Column original_author_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table review Column issue_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table review Column content db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table review Column commit_id db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table review Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table review Column updated_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git oauth2_application] - 2.049558ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git oauth2_application] - 259.499µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table oauth2_application Column uid db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table oauth2_application Column name db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table oauth2_application Column client_id db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table oauth2_application Column client_secret db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table oauth2_application Column redirect_uris db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table oauth2_application Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table oauth2_application Column updated_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git oauth2_authorization_code] - 2.188016ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git oauth2_authorization_code] - 267.519µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table oauth2_authorization_code Column grant_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table oauth2_authorization_code Column code db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table oauth2_authorization_code Column code_challenge db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table oauth2_authorization_code Column code_challenge_method db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table oauth2_authorization_code Column redirect_uri db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table oauth2_authorization_code Column valid_until db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git oauth2_grant] - 2.185106ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git oauth2_grant] - 193.892µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table oauth2_grant Column user_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table oauth2_grant Column application_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table oauth2_grant Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table oauth2_grant Column updated_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git task] - 2.080804ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git task] - 352.414µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table task Column doer_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table task Column owner_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table task Column repo_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table task Column type db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table task Column status db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table task Column start_time db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table task Column end_time db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table task Column payload_content db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table task Column errors db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table task Column created db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git language_stat] - 3.481349ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git language_stat] - 327.441µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table language_stat Column commit_id db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table language_stat Column is_primary db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table language_stat Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git email_hash] - 2.290349ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git email_hash] - 225.622µs
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git topic] - 2.269099ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git topic] - 388.649µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table topic Column name db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table topic Column repo_count db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table topic Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table topic Column updated_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git repo_topic] - 2.415043ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git repo_topic] - 210.288µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repo_topic Column repo_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repo_topic Column topic_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:25:Ping() [I] PING DATABASE mysql
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] BEGIN TRANSACTION [] - 107.948µs
2020/08/09 22:18:44 ...ations/migrations.go:333:func1() [I] Recreating Table: topic for Bean: Topic
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] CREATE TABLE IF NOT EXISTS `recreate_tempzzz__topic__zztemp_recreate` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `name` VARCHAR(25) NULL, `repo_count` INT NULL, `created_unix` BIGINT(20) NULL, `updated_unix` BIGINT(20) NULL) DEFAULT CHARSET utf8mb4 ROW_FORMAT=DYNAMIC [] - 14.816905ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] INSERT INTO `recreate_tempzzz__topic__zztemp_recreate` (`id`, `name`, `repo_count`, `created_unix`, `updated_unix`) SELECT `id`, `name`, `repo_count`, `created_unix`, `updated_unix` FROM `topic` [] - 658.672µs
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] DROP TABLE `topic` [] - 2.330544ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] ALTER TABLE `recreate_tempzzz__topic__zztemp_recreate` RENAME TO `topic` [] - 1.81388ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] COMMIT [] - 94.794µs
2020/08/09 22:18:44 ...o/xorm/session_tx.go:75:Commit() [I] [SQL] COMMIT [] - 114.261µs
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `TABLE_NAME`, `ENGINE`, `AUTO_INCREMENT`, `TABLE_COMMENT` from `INFORMATION_SCHEMA`.`TABLES` WHERE `TABLE_SCHEMA`=? AND (`ENGINE`='MyISAM' OR `ENGINE` = 'InnoDB' OR `ENGINE` = 'TokuDB') [git] - 1.397748ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git user] - 2.395978ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git user] - 301.946µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column full_name db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column keep_email_private db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column email_notifications_preference db default is ''enabled'', struct default is 'enabled'
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column passwd_hash_algo db default is ''pbkdf2'', struct default is 'pbkdf2'
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column login_type db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column login_name db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column type db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column location db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column website db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column rands db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column salt db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column language db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column description db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column updated_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column last_login_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column last_repo_visibility db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column is_active db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column is_admin db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column allow_git_hook db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column allow_import_local db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column use_custom_avatar db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column num_followers db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column num_stars db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column num_repos db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column num_teams db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column num_members db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column diff_view_style db default is '''', struct default is ''
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table user Column theme db default is '''', struct default is ''
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git public_key] - 2.539875ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git public_key] - 182.983µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table public_key Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table public_key Column updated_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git access_token] - 2.257822ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git access_token] - 220.031µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table access_token Column uid db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table access_token Column name db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table access_token Column token_hash db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table access_token Column token_salt db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table access_token Column token_last_eight db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table access_token Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table access_token Column updated_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git repository] - 2.301772ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git repository] - 221.844µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repository Column owner_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repository Column owner_name db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repository Column description db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repository Column website db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repository Column original_service_type db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repository Column original_url db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repository Column default_branch db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repository Column num_watches db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repository Column num_stars db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repository Column num_forks db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repository Column num_issues db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repository Column num_closed_issues db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repository Column num_pulls db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repository Column num_closed_pulls db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repository Column is_private db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repository Column is_empty db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repository Column is_archived db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repository Column is_mirror db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repository Column fork_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repository Column template_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repository Column topics db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repository Column avatar db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repository Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table repository Column updated_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git deploy_key] - 2.299639ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git deploy_key] - 268.476µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table deploy_key Column key_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table deploy_key Column repo_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table deploy_key Column name db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table deploy_key Column fingerprint db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table deploy_key Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table deploy_key Column updated_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git collaboration] - 2.219014ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git collaboration] - 349.127µs
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git access] - 2.156903ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git access] - 257.754µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table access Column user_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table access Column repo_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table access Column mode db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git upload] - 2.114409ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git upload] - 231.665µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table upload Column uuid db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table upload Column name db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git watch] - 2.482719ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git watch] - 248.006µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table watch Column user_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table watch Column repo_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git star] - 2.390298ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git star] - 251.758µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table star Column uid db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table star Column repo_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git follow] - 2.182394ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git follow] - 261.951µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table follow Column user_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table follow Column follow_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git action] - 2.209936ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git action] - 225.298µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table action Column user_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table action Column op_type db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table action Column act_user_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table action Column repo_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table action Column comment_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table action Column ref_name db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table action Column content db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table action Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git issue] - 1.988025ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git issue] - 268.564µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table issue Column repo_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table issue Column index db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table issue Column poster_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table issue Column original_author db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table issue Column original_author_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table issue Column name db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table issue Column content db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table issue Column milestone_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table issue Column priority db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table issue Column is_closed db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table issue Column is_pull db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table issue Column num_comments db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table issue Column ref db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table issue Column deadline_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table issue Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table issue Column updated_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table issue Column closed_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git pull_request] - 2.301154ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git pull_request] - 241.069µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table pull_request Column type db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table pull_request Column status db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table pull_request Column conflicted_files db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table pull_request Column commits_ahead db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table pull_request Column commits_behind db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table pull_request Column issue_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table pull_request Column index db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table pull_request Column head_repo_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table pull_request Column base_repo_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table pull_request Column head_branch db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table pull_request Column base_branch db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table pull_request Column merge_base db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table pull_request Column has_merged db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table pull_request Column merged_commit_id db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table pull_request Column merger_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table pull_request Column merged_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git comment] - 2.400952ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git comment] - 219.478µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column type db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column poster_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column original_author db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column original_author_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column issue_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column label_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column old_milestone_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column milestone_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column assignee_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column removed_assignee db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column resolve_doer_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column old_title db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column new_title db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column old_ref db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column new_ref db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column dependent_issue_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column commit_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column line db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column tree_path db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column content db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column patch db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column updated_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column commit_sha db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column review_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column invalidated db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column ref_repo_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column ref_issue_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column ref_comment_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column ref_action db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table comment Column ref_is_pull db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git attachment] - 2.158161ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git attachment] - 255.028µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table attachment Column uuid db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table attachment Column issue_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table attachment Column release_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table attachment Column comment_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table attachment Column name db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table attachment Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git label] - 2.213409ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git label] - 188.065µs
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table label Column repo_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table label Column org_id db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table label Column name db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table label Column description db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table label Column color db default is 'NULL', struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table label Column num_issues db default is NULL, struct default is 
2020/08/09 22:18:44 ...rm/session_schema.go:360:Sync2() [W] Table label Column num_closed_issues db default is NULL, struct default is 
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git issue_label] - 1.891175ms
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git issue_label] - 140.343µs
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table issue_label Column issue_id db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table issue_label Column label_id db default is NULL, struct default is 
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git milestone] - 1.932665ms
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git milestone] - 200.824µs
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table milestone Column repo_id db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table milestone Column name db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table milestone Column content db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table milestone Column is_closed db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table milestone Column num_issues db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table milestone Column num_closed_issues db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table milestone Column completeness db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table milestone Column deadline_unix db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table milestone Column closed_date_unix db default is NULL, struct default is 
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git mirror] - 1.896953ms
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git mirror] - 253.787µs
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table mirror Column repo_id db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table mirror Column interval db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table mirror Column updated_unix db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table mirror Column next_update_unix db default is NULL, struct default is 
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git release] - 2.416644ms
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git release] - 244.295µs
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table release Column repo_id db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table release Column publisher_id db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table release Column tag_name db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table release Column original_author db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table release Column original_author_id db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table release Column lower_tag_name db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table release Column target db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table release Column title db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table release Column sha1 db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table release Column num_commits db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table release Column note db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table release Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git login_source] - 2.338283ms
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git login_source] - 240.934µs
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table login_source Column type db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table login_source Column name db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table login_source Column cfg db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table login_source Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table login_source Column updated_unix db default is NULL, struct default is 
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git webhook] - 2.251396ms
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git webhook] - 292.091µs
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table webhook Column repo_id db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table webhook Column org_id db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table webhook Column is_system_webhook db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table webhook Column url db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table webhook Column signature db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table webhook Column http_method db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table webhook Column content_type db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table webhook Column secret db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table webhook Column events db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table webhook Column is_ssl db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table webhook Column is_active db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table webhook Column hook_task_type db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table webhook Column meta db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table webhook Column last_status db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table webhook Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table webhook Column updated_unix db default is NULL, struct default is 
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git hook_task] - 2.366405ms
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git hook_task] - 240.763µs
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table hook_task Column repo_id db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table hook_task Column hook_id db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table hook_task Column uuid db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table hook_task Column type db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table hook_task Column url db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table hook_task Column signature db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table hook_task Column payload_content db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table hook_task Column http_method db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table hook_task Column content_type db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table hook_task Column event_type db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table hook_task Column is_ssl db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table hook_task Column is_delivered db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table hook_task Column delivered db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table hook_task Column is_succeed db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table hook_task Column request_content db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table hook_task Column response_content db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git team] - 2.05243ms
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git team] - 206.883µs
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table team Column org_id db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table team Column lower_name db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table team Column name db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table team Column description db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table team Column authorize db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table team Column num_repos db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table team Column num_members db default is NULL, struct default is 
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git org_user] - 2.213757ms
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git org_user] - 263.532µs
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table org_user Column uid db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table org_user Column org_id db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table org_user Column is_public db default is NULL, struct default is 
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git team_user] - 1.95755ms
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git team_user] - 192.067µs
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table team_user Column org_id db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table team_user Column team_id db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table team_user Column uid db default is NULL, struct default is 
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git team_repo] - 1.963657ms
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git team_repo] - 199.818µs
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table team_repo Column org_id db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table team_repo Column team_id db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table team_repo Column repo_id db default is NULL, struct default is 
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git notice] - 2.042686ms
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git notice] - 241.528µs
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table notice Column type db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table notice Column description db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table notice Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git email_address] - 2.047349ms
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git email_address] - 214.08µs
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table email_address Column is_activated db default is NULL, struct default is 
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git notification] - 1.967366ms
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git notification] - 244.361µs
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table notification Column commit_id db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table notification Column comment_id db default is NULL, struct default is 
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git issue_user] - 2.088148ms
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git issue_user] - 200.332µs
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table issue_user Column uid db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table issue_user Column issue_id db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table issue_user Column is_read db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table issue_user Column is_mentioned db default is NULL, struct default is 
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git lfs_meta_object] - 1.922831ms
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git lfs_meta_object] - 192.295µs
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table lfs_meta_object Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git two_factor] - 2.126165ms
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git two_factor] - 268.174µs
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table two_factor Column uid db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table two_factor Column secret db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table two_factor Column scratch_salt db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table two_factor Column scratch_hash db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table two_factor Column last_used_passcode db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table two_factor Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table two_factor Column updated_unix db default is NULL, struct default is 
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git gpg_key] - 2.107491ms
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git gpg_key] - 210.115µs
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table gpg_key Column primary_key_id db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table gpg_key Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table gpg_key Column expired_unix db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table gpg_key Column added_unix db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table gpg_key Column emails db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table gpg_key Column can_sign db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table gpg_key Column can_encrypt_comms db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table gpg_key Column can_encrypt_storage db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table gpg_key Column can_certify db default is NULL, struct default is 
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git gpg_key_import] - 2.038308ms
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git gpg_key_import] - 212.528µs
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git repo_unit] - 2.121799ms
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git repo_unit] - 226.31µs
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table repo_unit Column repo_id db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table repo_unit Column type db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table repo_unit Column config db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table repo_unit Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git repo_redirect] - 1.899578ms
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git repo_redirect] - 403.416µs
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table repo_redirect Column owner_id db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table repo_redirect Column redirect_repo_id db default is NULL, struct default is 
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git external_login_user] - 2.090848ms
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git external_login_user] - 215.74µs
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table external_login_user Column raw_data db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table external_login_user Column provider db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table external_login_user Column email db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table external_login_user Column name db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table external_login_user Column first_name db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table external_login_user Column last_name db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table external_login_user Column nick_name db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table external_login_user Column description db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table external_login_user Column avatar_url db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table external_login_user Column location db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table external_login_user Column access_token db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table external_login_user Column access_token_secret db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table external_login_user Column refresh_token db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table external_login_user Column expires_at db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git protected_branch] - 2.314009ms
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git protected_branch] - 210.197µs
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table protected_branch Column repo_id db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table protected_branch Column branch_name db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table protected_branch Column enable_whitelist db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table protected_branch Column whitelist_user_i_ds db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table protected_branch Column whitelist_team_i_ds db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table protected_branch Column merge_whitelist_user_i_ds db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table protected_branch Column merge_whitelist_team_i_ds db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table protected_branch Column status_check_contexts db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table protected_branch Column approvals_whitelist_user_i_ds db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table protected_branch Column approvals_whitelist_team_i_ds db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table protected_branch Column protected_file_patterns db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table protected_branch Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table protected_branch Column updated_unix db default is NULL, struct default is 
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git user_open_id] - 1.997719ms
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git user_open_id] - 181.903µs
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git issue_watch] - 2.060909ms
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git issue_watch] - 175.066µs
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git commit_status] - 2.386072ms
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git commit_status] - 328.883µs
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table commit_status Column index db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table commit_status Column repo_id db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table commit_status Column target_url db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table commit_status Column description db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table commit_status Column context_hash db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table commit_status Column context db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table commit_status Column creator_id db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table commit_status Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table commit_status Column updated_unix db default is NULL, struct default is 
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git stopwatch] - 2.170132ms
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git stopwatch] - 243.387µs
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table stopwatch Column issue_id db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table stopwatch Column user_id db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table stopwatch Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git tracked_time] - 2.11583ms
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git tracked_time] - 245.776µs
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table tracked_time Column issue_id db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table tracked_time Column user_id db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table tracked_time Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git deleted_branch] - 2.055004ms
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git deleted_branch] - 202.375µs
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table deleted_branch Column deleted_by_id db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table deleted_branch Column deleted_unix db default is NULL, struct default is 
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git repo_indexer_status] - 2.137943ms
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git repo_indexer_status] - 253.644µs
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table repo_indexer_status Column repo_id db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table repo_indexer_status Column commit_sha db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git issue_dependency] - 2.028106ms
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git issue_dependency] - 240.892µs
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table issue_dependency Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table issue_dependency Column updated_unix db default is NULL, struct default is 
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git lfs_lock] - 2.050653ms
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git lfs_lock] - 175.678µs
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table lfs_lock Column path db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table lfs_lock Column created db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git reaction] - 1.978734ms
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git reaction] - 182.676µs
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table reaction Column comment_id db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table reaction Column original_author db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table reaction Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git issue_assignees] - 2.080833ms
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git issue_assignees] - 223.045µs
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table issue_assignees Column assignee_id db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table issue_assignees Column issue_id db default is NULL, struct default is 
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git u2f_registration] - 1.94749ms
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git u2f_registration] - 192.662µs
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table u2f_registration Column name db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table u2f_registration Column user_id db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table u2f_registration Column raw db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table u2f_registration Column counter db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table u2f_registration Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table u2f_registration Column updated_unix db default is NULL, struct default is 
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git team_unit] - 2.448514ms
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git team_unit] - 327.744µs
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table team_unit Column org_id db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table team_unit Column team_id db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table team_unit Column type db default is NULL, struct default is 
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git review] - 2.52129ms
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git review] - 237.717µs
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table review Column type db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table review Column reviewer_id db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table review Column original_author db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table review Column original_author_id db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table review Column issue_id db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table review Column content db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table review Column commit_id db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table review Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table review Column updated_unix db default is NULL, struct default is 
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git oauth2_application] - 2.382743ms
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git oauth2_application] - 307.445µs
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table oauth2_application Column uid db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table oauth2_application Column name db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table oauth2_application Column client_id db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table oauth2_application Column client_secret db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table oauth2_application Column redirect_uris db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table oauth2_application Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table oauth2_application Column updated_unix db default is NULL, struct default is 
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git oauth2_authorization_code] - 1.994984ms
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git oauth2_authorization_code] - 258.446µs
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table oauth2_authorization_code Column grant_id db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table oauth2_authorization_code Column code db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table oauth2_authorization_code Column code_challenge db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table oauth2_authorization_code Column code_challenge_method db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table oauth2_authorization_code Column redirect_uri db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table oauth2_authorization_code Column valid_until db default is NULL, struct default is 
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git oauth2_grant] - 1.982678ms
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git oauth2_grant] - 294.466µs
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table oauth2_grant Column user_id db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table oauth2_grant Column application_id db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table oauth2_grant Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table oauth2_grant Column updated_unix db default is NULL, struct default is 
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git task] - 1.97343ms
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git task] - 258.14µs
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table task Column doer_id db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table task Column owner_id db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table task Column repo_id db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table task Column type db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table task Column status db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table task Column start_time db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table task Column end_time db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table task Column payload_content db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table task Column errors db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table task Column created db default is NULL, struct default is 
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git language_stat] - 2.223056ms
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git language_stat] - 210.896µs
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table language_stat Column commit_id db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table language_stat Column is_primary db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table language_stat Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git email_hash] - 2.048495ms
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git email_hash] - 305.06µs
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git topic] - 1.992231ms
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git topic] - 326.471µs
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table topic Column name db default is 'NULL', struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table topic Column repo_count db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table topic Column created_unix db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table topic Column updated_unix db default is NULL, struct default is 
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] CREATE UNIQUE INDEX `UQE_topic_name` ON `topic` (`name`) [] - 11.459621ms
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] CREATE INDEX `IDX_topic_created_unix` ON `topic` (`created_unix`) [] - 10.361509ms
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] CREATE INDEX `IDX_topic_updated_unix` ON `topic` (`updated_unix`) [] - 9.852787ms
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`, `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION [git repo_topic] - 2.710903ms
2020/08/09 22:18:45 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `INDEX_NAME`, `NON_UNIQUE`, `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`STATISTICS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ? [git repo_topic] - 293.399µs
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table repo_topic Column repo_id db default is NULL, struct default is 
2020/08/09 22:18:45 ...rm/session_schema.go:360:Sync2() [W] Table repo_topic Column topic_id db default is NULL, struct default is

@zeripath
Copy link
Contributor Author

It won't appear in --list as it is not a doctor check

@zeripath
Copy link
Contributor Author

You've got so many warnings there it's impossible to tell if this is failing. You should see the warnings once as the db is initialised. Three second time round they should disappear.

Just run gitea recreate-table twice. If the warnings are still there on the second run I'll be able to tell.

Xorm is recreating the tables here so it should get the defaults right so if it doesn't the there is a bug in xorm.

@silverwind
Copy link
Member

silverwind commented Aug 10, 2020

It does seem to run sucessful, but no matter how many time I run, it does not get rid of the Table <table> Column <column> db default is NULL, struct default is spam when running it against one or all tables.

2020/08/09 22:18:44 ...rm/session_schema.go:25:Ping() [I] PING DATABASE mysql
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] BEGIN TRANSACTION [] - 107.948µs
2020/08/09 22:18:44 ...ations/migrations.go:333:func1() [I] Recreating Table: topic for Bean: Topic
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] CREATE TABLE IF NOT EXISTS `recreate_tempzzz__topic__zztemp_recreate` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `name` VARCHAR(25) NULL, `repo_count` INT NULL, `created_unix` BIGINT(20) NULL, `updated_unix` BIGINT(20) NULL) DEFAULT CHARSET utf8mb4 ROW_FORMAT=DYNAMIC [] - 14.816905ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] INSERT INTO `recreate_tempzzz__topic__zztemp_recreate` (`id`, `name`, `repo_count`, `created_unix`, `updated_unix`) SELECT `id`, `name`, `repo_count`, `created_unix`, `updated_unix` FROM `topic` [] - 658.672µs
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] DROP TABLE `topic` [] - 2.330544ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] ALTER TABLE `recreate_tempzzz__topic__zztemp_recreate` RENAME TO `topic` [] - 1.81388ms
2020/08/09 22:18:44 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] COMMIT [] - 94.794µs
2020/08/09 22:18:44 ...o/xorm/session_tx.go:75:Commit() [I] [SQL] COMMIT [] - 114.261µs

@codecov-commenter
Copy link

codecov-commenter commented Aug 29, 2020

Codecov Report

Merging #12407 into master will decrease coverage by 0.12%.
The diff coverage is 0.55%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #12407      +/-   ##
==========================================
- Coverage   43.42%   43.29%   -0.13%     
==========================================
  Files         648      648              
  Lines       71581    71760     +179     
==========================================
- Hits        31081    31071      -10     
- Misses      35470    35660     +190     
+ Partials     5030     5029       -1     
Impacted Files Coverage Δ
cmd/doctor.go 0.00% <0.00%> (ø)
models/migrations/migrations.go 2.46% <0.00%> (-2.21%) ⬇️
models/models.go 57.44% <0.00%> (-6.46%) ⬇️
modules/avatar/avatar.go 54.76% <100.00%> (+4.76%) ⬆️
modules/util/timer.go 42.85% <0.00%> (-42.86%) ⬇️
models/repo_mirror.go 2.38% <0.00%> (-11.91%) ⬇️
models/log.go 36.58% <0.00%> (-4.88%) ⬇️
modules/cron/tasks_basic.go 87.35% <0.00%> (-3.45%) ⬇️
modules/git/utils.go 73.77% <0.00%> (-3.28%) ⬇️
modules/queue/unique_queue_disk_channel.go 53.84% <0.00%> (-1.54%) ⬇️
... and 8 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0b198eb...0374251. Read the comment docs.

Signed-off-by: Andrew Thornton <art27@cantab.net>
@silverwind
Copy link
Member

silverwind commented Aug 29, 2020

Copying from other PR. It still doesn't quite do it for me (MariaDB 10.5.5):

$ mysql -s -r git
> show create table star;
19:54:45 localhost> show create table star;
Table	Create Table
star	CREATE TABLE `star` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `uid` bigint(20) DEFAULT NULL,
  `repo_id` bigint(20) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UQE_tmp_recreate__star_s` (`uid`,`repo_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC
./gitea doctor recreate-table | grep star
2020/08/29 19:49:08 [W] Table user Column num_stars db default is NULL, struct default is
2020/08/29 19:49:08 [W] Table repository Column num_stars db default is NULL, struct default is
2020/08/29 19:49:08 [W] Table star Column uid db default is NULL, struct default is
2020/08/29 19:49:08 [W] Table star Column repo_id db default is NULL, struct default is
2020/08/29 19:49:08 [W] Table task Column start_time db default is NULL, struct default is
2020/08/29 19:49:09 [I] Recreating Table: star for Bean: Star
2020/08/29 19:49:13 [W] Table user Column num_stars db default is NULL, struct default is
2020/08/29 19:49:13 [W] Table repository Column num_stars db default is NULL, struct default is
2020/08/29 19:49:13 [W] Table star Column uid db default is NULL, struct default is
2020/08/29 19:49:13 [W] Table star Column repo_id db default is NULL, struct default is
2020/08/29 19:49:13 [W] Table task Column start_time db default is NULL, struct default is

@zeripath
Copy link
Contributor Author

@silverwind OK having looked a bit more in to that that's a bug of Xorm.

The issue is: xorm.io/xorm/session_schema.go:228

func (session *Session) Sync2(beans ...interface{}) error {...}

Calls: xorm.io/xorm/dialects/mysql.go:517

func (db *mysql) CreateTableSQL(table *schemas.Table, tableName string) ([]string, bool) {...}

Which calls xorm.io/xorm/dialects/dialect.go:227

func ColumnString(dialect Dialect, col *schemas.Column, includePrimaryKey bool) (string, error) {...}

which at: xorm.io/xorm/dialects/dialect.go:261

	if col.Default != "" {
		if _, err := bd.WriteString("DEFAULT "); err != nil {
			return "", err
		}
		if _, err := bd.WriteString(col.Default); err != nil {
			return "", err
		}
		if err := bd.WriteByte(' '); err != nil {
			return "", err
		}
	}

skips out the Default if it's empty.

However this conflicts with later parts of Sync2, in particular: xorm.io/xorm/session_schema.go:353

			if col.Default != oriCol.Default {
				switch {
				case col.IsAutoIncrement: // For autoincrement column, don't check default
				case (col.SQLType.Name == schemas.Bool || col.SQLType.Name == schemas.Boolean) &&
					((strings.EqualFold(col.Default, "true") && oriCol.Default == "1") ||
						(strings.EqualFold(col.Default, "false") && oriCol.Default == "0")):
				default:
					engine.logger.Warnf("Table %s Column %s db default is %s, struct default is %s",
						tbName, col.Name, oriCol.Default, col.Default)
				}
			}

Where oriCol.Default is read in as "NULL" if has not been specified, at: xorm.io/xorm/dialects/mysql.go:308

func (db *mysql) GetColumns(queryer core.Queryer, ctx context.Context, tableName string) ([]string, map[string]*schemas.Column, error) {
	args := []interface{}{db.uri.DBName, tableName}
	s := "SELECT `COLUMN_NAME`, `IS_NULLABLE`, `COLUMN_DEFAULT`, `COLUMN_TYPE`," +
		" `COLUMN_KEY`, `EXTRA`,`COLUMN_COMMENT` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = ? AND `TABLE_NAME` = ?" +
		" ORDER BY `INFORMATION_SCHEMA`.`COLUMNS`.ORDINAL_POSITION"

	rows, err := queryer.QueryContext(ctx, s, args...)
	if err != nil {
		return nil, nil, err
	}
	defer rows.Close()

	cols := make(map[string]*schemas.Column)
	colSeq := make([]string, 0)
	for rows.Next() {
		col := new(schemas.Column)
		col.Indexes = make(map[string]int)

		var columnName, isNullable, colType, colKey, extra, comment string
		var colDefault *string
		err = rows.Scan(&columnName, &isNullable, &colDefault, &colType, &colKey, &extra, &comment)
		if err != nil {
			return nil, nil, err
		}
		col.Name = strings.Trim(columnName, "` ")
		col.Comment = comment
		if "YES" == isNullable {
			col.Nullable = true
		}

		if colDefault != nil {
			col.Default = *colDefault
			col.DefaultIsEmpty = false
		} else {
			col.DefaultIsEmpty = true
		}
...

Copy link
Member

@silverwind silverwind left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested with latest XORM update against MariaDB, working fine from a functional perspective.

@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Sep 3, 2020
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Sep 6, 2020
@zeripath
Copy link
Contributor Author

zeripath commented Sep 6, 2020

make lg-tm work

@zeripath zeripath merged commit 1b9d507 into go-gitea:master Sep 6, 2020
@zeripath zeripath deleted the doctor-recreate-tables branch September 6, 2020 21:52
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/feature Completely new functionality. Can only be merged if feature freeze is not active.
Projects
None yet
5 participants