GithubHelp home page GithubHelp logo

mysql initialization error about gogs HOT 40 CLOSED

eryx avatar eryx commented on May 13, 2024
mysql initialization error

from gogs.

Comments (40)

unknwon avatar unknwon commented on May 13, 2024

Sorry for replying so late, database part developer is in China so he is sleeping now, I'll get him in charge of this issue as soon as he gets up.

from gogs.

lunny avatar lunny commented on May 13, 2024

Could you download the lastest version and test again? I couldn't find the problem in my computer.

from gogs.

countcb avatar countcb commented on May 13, 2024

I have the same problem:
Database setting is not correct: Error 1071: Specified key was too long; max key length is 1000 bytes

MySql Version: 5.1.61

Anything one can do about this? Was really looking forward to using is... :(

from gogs.

countcb avatar countcb commented on May 13, 2024

Latest gogs Version btw

from gogs.

unknwon avatar unknwon commented on May 13, 2024

Thanks for your feedback and sorry for trouble, we're working on that.

from gogs.

countcb avatar countcb commented on May 13, 2024

No need to be sorry. You did an awesome job so far! Thanks for that.

Hope you can find the problem.
Will have a look at it myself next week too... Maybe I can provide more detailed error message...
Thanks again! Looking forward to use this :)

from gogs.

unknwon avatar unknwon commented on May 13, 2024

It's kind of hard for us cause we really do not have a machine that is running MySQL 5.1, is this the version you're using?

from gogs.

unknwon avatar unknwon commented on May 13, 2024

My bad, you've mentioned already. I guess I really need to setup a VM with MySQL 5.1

from gogs.

linc01n avatar linc01n commented on May 13, 2024

I had this problem also. It is caused by MyISAM. Once you import the config/mysql.sql login into mysql and run

use gogs;
set global storage_engine=INNODB;

After that go to http://:3000/install and everything works fine.

from gogs.

unknwon avatar unknwon commented on May 13, 2024

@linc01n Wow, thank you!

from gogs.

countcb avatar countcb commented on May 13, 2024

Worked like a charm!

from gogs.

unknwon avatar unknwon commented on May 13, 2024

@countcb Is it solving your problem?

from gogs.

countcb avatar countcb commented on May 13, 2024

Yes. Was able to install it now correctly!

Thanks a lot!

from gogs.

unknwon avatar unknwon commented on May 13, 2024

@countcb Glad to here that! @linc01n Thank you again! I'll add this case to trouble shooting.

How does solution work for you? @eryx

from gogs.

eryx avatar eryx commented on May 13, 2024

Yes! It worked.

from gogs.

unknwon avatar unknwon commented on May 13, 2024

Awesome, so I just add this case to trouble shooting and close the issue now.

from gogs.

unknwon avatar unknwon commented on May 13, 2024

https://github.com/gogits/gogs/wiki/Troubleshooting#error-1071-specified-key-was-too-long-max-key-length-is-1000-bytes

from gogs.

linc01n avatar linc01n commented on May 13, 2024

@unknwon I have checked xorm support setting storage engine using .StoreEngine("InnoDB")

I tried to set this last night. No luck when using with orm.Sync.

from gogs.

unknwon avatar unknwon commented on May 13, 2024

@lunny come and solve bug! LOL

from gogs.

lunny avatar lunny commented on May 13, 2024

@linc01n .StoreEngine() currently only support CreateTable(). I will test if we can enable it if Sync().

from gogs.

luto avatar luto commented on May 13, 2024

The suggested workaround doesn't work if you do not have admin permissions on the MySQL-Server (e.g. shared hosting).

from gogs.

luto avatar luto commented on May 13, 2024

Any news on this? @unknwon
Do you have any pointers for me as to where this issue lies exactly?

from gogs.

unknwon avatar unknwon commented on May 13, 2024

Hi @luto , currently, it's most likely not going to be able to fix this issue if you don't have permission to change DB engine...sorry about that!

from gogs.

luto avatar luto commented on May 13, 2024

The DB engine can be set for every table. If gogs requires a specific engine, it can just set it for every table, even if you don't have the permission to change it for the whole DB.

table_option:
    ENGINE [=] engine_name

(http://dev.mysql.com/doc/refman/5.1/en/create-table.html)

If you can point me in the right direction, I'd love to fix this myself and submit a pull-request afterwards.

from gogs.

unknwon avatar unknwon commented on May 13, 2024

@luto , you can talk to @lunny to see if it's possible to let xorm support it. But he is in China(sleeping) now, I'll tell him tomorrow.

from gogs.

lunny avatar lunny commented on May 13, 2024

OK. I think we need engine.StoreEngine("InnoDB").Sync2() to solve this problem. Let me check if I can implement it! @unknwon @luto @linc01n

from gogs.

unknwon avatar unknwon commented on May 13, 2024

@lunny cool!

from gogs.

luto avatar luto commented on May 13, 2024

@lunny great! thanks for looking into this!

from gogs.

lunny avatar lunny commented on May 13, 2024

go-xorm/xorm@f7406f8 finished. Now you can change engine.Sync2 to engine.StoreEngine("InnoDB").Sync2. this will not affect sqlite and postgres.
@unknwon @luto

from gogs.

luto avatar luto commented on May 13, 2024

Thanks a lot, @lunny!

https://github.com/luto/gogs/tree/fix-mysql-engine

I'll test this and submit a PR later.

from gogs.

luto avatar luto commented on May 13, 2024

So I have added the StoreEngine-call as you described, but this still creates MyISAM-Tables for me..

from gogs.

lunny avatar lunny commented on May 13, 2024

If you have created tables, it will not convert from myisam to innodb. So maybe you should delete all tables and then start gogs. @luto And have you updated xorm?

from gogs.

luto avatar luto commented on May 13, 2024

I've deleted all the tables beforehand and re-installed gogos completly. Here is what I did step-by-step:

$ mkdir gogs
$ cd gogs
$ export GOPATH=$PWD

$ go get -u github.com/gogits/gogs
$ cd $GOPATH/src/github.com/gogits/gogs
$ nano ./models/models.go    # fix Sync2-call by hand
$ grep -r Sync2 .   # verify
./models/models.go: if err = x.StoreEngine("InnoDB").Sync2(tables...); err != nil {
$ go build -a

$ cd ../../go-xorm/xorm/
$ git show HEAD   # xorm-version seems right
commit f7406f81b49d9b6eb1e0dc92477c792842484bbc
Author: Lunny Xiao <[email protected]>
Date:   Tue Oct 28 23:10:06 2014 +0800

    add StoreEngine for Sync2 when use mysql

$ cd $GOPATH/src/github.com/gogits/gogs

$ mysql <<< "use gogstes2; show tables;"
# no tables.

# run gogs, do setup and so on..

$ mysql <<< "use gogstes2; show table status from gogstes2;"
(...)
access  MyISAM  10  Dynamic 0   0   0   281474976710655 1024    0   
(...)

from gogs.

lunny avatar lunny commented on May 13, 2024

Let me check.

from gogs.

lunny avatar lunny commented on May 13, 2024

Could you check log/xorm.log for create table SQLs. @luto

from gogs.

luto avatar luto commented on May 13, 2024

Uhm.. there is no xorm.log in my whole $GOPATH. Where is it supposed to be?

from gogs.

lunny avatar lunny commented on May 13, 2024

$GOGS_HOME/log/xorm.log

from gogs.

luto avatar luto commented on May 13, 2024
create table sql: [ CREATE TABLE IF NOT EXISTS `user` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `lower_name` VARCHAR(255) NOT NULL, `name` VARCHAR(255) NOT NULL, `full_name` VARCHAR(255) NULL, `email` VARCHAR(255) NOT NULL, `passwd` VARCHAR(255) NOT NULL, `login_type` INT NULL, `login_source` BIGINT(20) NOT NULL DEFAULT 0, `login_name` VARCHAR(255) NULL, `type` INT NULL, `num_followers` INT NULL, `num_followings` INT NULL, `num_stars` INT NULL, `num_repos` INT NULL, `avatar` VARCHAR(2048) NOT NULL, `avatar_email` VARCHAR(255) NOT NULL, `location` VARCHAR(255) NULL, `website` VARCHAR(255) NULL, `is_active` TINYINT(1) NULL, `is_admin` TINYINT(1) NULL, `rands` VARCHAR(10) NULL, `salt` VARCHAR(10) NULL, `created` DATETIME NULL, `updated` DATETIME NULL, `description` VARCHAR(255) NULL, `num_teams` INT NULL, `num_members` INT NULL) DEFAULT CHARSET utf8; ]
create table sql: [ CREATE TABLE IF NOT EXISTS `public_key` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `owner_id` BIGINT(20) NOT NULL, `name` VARCHAR(255) NOT NULL, `fingerprint` VARCHAR(255) NULL, `content` TEXT NOT NULL, `created` DATETIME NULL, `updated` DATETIME NULL) DEFAULT CHARSET utf8; ]
create table sql: [ CREATE TABLE IF NOT EXISTS `follow` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `user_id` BIGINT(20) NULL, `follow_id` BIGINT(20) NULL) DEFAULT CHARSET utf8; ]
create table sql: [ CREATE TABLE IF NOT EXISTS `oauth2` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `uid` BIGINT(20) NULL, `type` INT NULL, `identity` VARCHAR(255) NULL, `token` TEXT NOT NULL, `created` DATETIME NULL, `updated` DATETIME NULL) DEFAULT CHARSET utf8; ]
create table sql: [ CREATE TABLE IF NOT EXISTS `repository` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `owner_id` BIGINT(20) NULL, `lower_name` VARCHAR(255) NOT NULL, `name` VARCHAR(255) NOT NULL, `description` VARCHAR(255) NULL, `website` VARCHAR(255) NULL, `default_branch` VARCHAR(255) NULL, `num_watches` INT NULL, `num_stars` INT NULL, `num_forks` INT NULL, `num_issues` INT NULL, `num_closed_issues` INT NULL, `num_pulls` INT NULL, `num_closed_pulls` INT NULL, `num_milestones` INT NOT NULL DEFAULT 0, `num_closed_milestones` INT NOT NULL DEFAULT 0, `is_private` TINYINT(1) NULL, `is_bare` TINYINT(1) NULL, `is_goget` TINYINT(1) NULL, `is_mirror` TINYINT(1) NULL, `is_fork` TINYINT(1) NOT NULL DEFAULT false, `fork_id` BIGINT(20) NULL, `created` DATETIME NULL, `updated` DATETIME NULL) DEFAULT CHARSET utf8; ]
create table sql: [ CREATE TABLE IF NOT EXISTS `watch` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `user_id` BIGINT(20) NULL, `repo_id` BIGINT(20) NULL) DEFAULT CHARSET utf8; ]
create table sql: [ CREATE TABLE IF NOT EXISTS `star` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `uid` BIGINT(20) NULL, `repo_id` BIGINT(20) NULL) DEFAULT CHARSET utf8; ]
create table sql: [ CREATE TABLE IF NOT EXISTS `action` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `user_id` BIGINT(20) NULL, `op_type` INT NULL, `act_user_id` BIGINT(20) NULL, `act_user_name` VARCHAR(255) NULL, `act_email` VARCHAR(255) NULL, `repo_id` BIGINT(20) NULL, `repo_user_name` VARCHAR(255) NULL, `repo_name` VARCHAR(255) NULL, `ref_name` VARCHAR(255) NULL, `is_private` TINYINT(1) NOT NULL DEFAULT false, `content` TEXT NULL, `created` DATETIME NULL) DEFAULT CHARSET utf8; ]
create table sql: [ CREATE TABLE IF NOT EXISTS `access` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `user_name` VARCHAR(255) NULL, `repo_name` VARCHAR(255) NULL, `mode` INT NULL, `created` DATETIME NULL) DEFAULT CHARSET utf8; ]

Doesn't have the engine in there :(

from gogs.

lunny avatar lunny commented on May 13, 2024
[xorm] [debug] 2014/10/30 22:11:37.980260 create table sql: [ CREATE TABLE IF NOT EXISTS `user` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `lower_name` VARCHAR(255) NOT NULL, `name` VARCHAR(255) NOT NULL, `full_name` VARCHAR(255) NULL, `email` VARCHAR(255) NOT NULL, `passwd` VARCHAR(255) NOT NULL, `login_type` INT NULL, `login_source` BIGINT(20) NOT NULL DEFAULT 0, `login_name` VARCHAR(255) NULL, `type` INT NULL, `num_followers` INT NULL, `num_followings` INT NULL, `num_stars` INT NULL, `num_repos` INT NULL, `avatar` VARCHAR(2048) NOT NULL, `avatar_email` VARCHAR(255) NOT NULL, `location` VARCHAR(255) NULL, `website` VARCHAR(255) NULL, `is_active` TINYINT(1) NULL, `is_admin` TINYINT(1) NULL, `rands` VARCHAR(10) NULL, `salt` VARCHAR(10) NULL, `created` DATETIME NULL, `updated` DATETIME NULL, `description` VARCHAR(255) NULL, `num_teams` INT NULL, `num_members` INT NULL) ENGINE=InnoDB DEFAULT CHARSET utf8; ]
[xorm] [info]  2014/10/30 22:11:37.980332 [sql] CREATE TABLE IF NOT EXISTS `user` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `lower_name` VARCHAR(255) NOT NULL, `name` VARCHAR(255) NOT NULL, `full_name` VARCHAR(255) NULL, `email` VARCHAR(255) NOT NULL, `passwd` VARCHAR(255) NOT NULL, `login_type` INT NULL, `login_source` BIGINT(20) NOT NULL DEFAULT 0, `login_name` VARCHAR(255) NULL, `type` INT NULL, `num_followers` INT NULL, `num_followings` INT NULL, `num_stars` INT NULL, `num_repos` INT NULL, `avatar` VARCHAR(2048) NOT NULL, `avatar_email` VARCHAR(255) NOT NULL, `location` VARCHAR(255) NULL, `website` VARCHAR(255) NULL, `is_active` TINYINT(1) NULL, `is_admin` TINYINT(1) NULL, `rands` VARCHAR(10) NULL, `salt` VARCHAR(10) NULL, `created` DATETIME NULL, `updated` DATETIME NULL, `description` VARCHAR(255) NULL, `num_teams` INT NULL, `num_members` INT NULL) ENGINE=InnoDB DEFAULT CHARSET utf8;
[xorm] [debug] 2014/10/30 22:11:38.019173 sql [CREATE TABLE IF NOT EXISTS `user` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `lower_name` VARCHAR(255) NOT NULL, `name` VARCHAR(255) NOT NULL, `full_name` VARCHAR(255) NULL, `email` VARCHAR(255) NOT NULL, `passwd` VARCHAR(255) NOT NULL, `login_type` INT NULL, `login_source` BIGINT(20) NOT NULL DEFAULT 0, `login_name` VARCHAR(255) NULL, `type` INT NULL, `num_followers` INT NULL, `num_followings` INT NULL, `num_stars` INT NULL, `num_repos` INT NULL, `avatar` VARCHAR(2048) NOT NULL, `avatar_email` VARCHAR(255) NOT NULL, `location` VARCHAR(255) NULL, `website` VARCHAR(255) NULL, `is_active` TINYINT(1) NULL, `is_admin` TINYINT(1) NULL, `rands` VARCHAR(10) NULL, `salt` VARCHAR(10) NULL, `created` DATETIME NULL, `updated` DATETIME NULL, `description` VARCHAR(255) NULL, `num_teams` INT NULL, `num_members` INT NULL) ENGINE=InnoDB DEFAULT CHARSET utf8;] - args [[]] - execution took: 38781413ns
[xorm] [info]  2014/10/30 22:11:38.019267 [sql] CREATE UNIQUE INDEX `UQE_user_lower_name` ON `user` (`lower_name`);
[xorm] [debug] 2014/10/30 22:11:38.036875 sql [CREATE UNIQUE INDEX `UQE_user_lower_name` ON `user` (`lower_name`);] - args [[]] - execution took: 17582320ns
[xorm] [info]  2014/10/30 22:11:38.036901 [sql] CREATE UNIQUE INDEX `UQE_user_name` ON `user` (`name`);
[xorm] [debug] 2014/10/30 22:11:38.061349 sql [CREATE UNIQUE INDEX `UQE_user_name` ON `user` (`name`);] - args [[]] - execution took: 24423991ns
[xorm] [info]  2014/10/30 22:11:38.061374 [sql] CREATE UNIQUE INDEX `UQE_user_email` ON `user` (`email`);
[xorm] [debug] 2014/10/30 22:11:38.086501 sql [CREATE UNIQUE INDEX `UQE_user_email` ON `user` (`email`);] - args [[]] - execution took: 25106501ns
[xorm] [debug] 2014/10/30 22:11:38.086707 create table sql: [ CREATE TABLE IF NOT EXISTS `public_key` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `owner_id` BIGINT(20) NOT NULL, `name` VARCHAR(255) NOT NULL, `fingerprint` VARCHAR(255) NULL, `content` TEXT NOT NULL, `created` DATETIME NULL, `updated` DATETIME NULL) ENGINE=InnoDB DEFAULT CHARSET utf8; ]
[xorm] [info]  2014/10/30 22:11:38.086722 [sql] CREATE TABLE IF NOT EXISTS `public_key` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `owner_id` BIGINT(20) NOT NULL, `name` VARCHAR(255) NOT NULL, `fingerprint` VARCHAR(255) NULL, `content` TEXT NOT NULL, `created` DATETIME NULL, `updated` DATETIME NULL) ENGINE=InnoDB DEFAULT CHARSET utf8;
[xorm] [debug] 2014/10/30 22:11:38.103485 sql [CREATE TABLE IF NOT EXISTS `public_key` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `owner_id` BIGINT(20) NOT NULL, `name` VARCHAR(255) NOT NULL, `fingerprint` VARCHAR(255) NULL, `content` TEXT NOT NULL, `created` DATETIME NULL, `updated` DATETIME NULL) ENGINE=InnoDB DEFAULT CHARSET utf8;] - args [[]] - execution took: 16728289ns
[xorm] [info]  2014/10/30 22:11:38.103562 [sql] CREATE UNIQUE INDEX `UQE_public_key_S` ON `public_key` (`owner_id`,`name`);
[xorm] [debug] 2014/10/30 22:11:38.122720 sql [CREATE UNIQUE INDEX `UQE_public_key_S` ON `public_key` (`owner_id`,`name`);] - args [[]] - execution took: 19133321ns
[xorm] [info]  2014/10/30 22:11:38.122788 [sql] CREATE INDEX `IDX_public_key_owner_id` ON `public_key` (`owner_id`);
[xorm] [debug] 2014/10/30 22:11:38.147499 sql [CREATE INDEX `IDX_public_key_owner_id` ON `public_key` (`owner_id`);] - args [[]] - execution took: 24676427ns
[xorm] [debug] 2014/10/30 22:11:38.147635 create table sql: [ CREATE TABLE IF NOT EXISTS `follow` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `user_id` BIGINT(20) NULL, `follow_id` BIGINT(20) NULL) ENGINE=InnoDB DEFAULT CHARSET utf8; ]
[xorm] [info]  2014/10/30 22:11:38.147650 [sql] CREATE TABLE IF NOT EXISTS `follow` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `user_id` BIGINT(20) NULL, `follow_id` BIGINT(20) NULL) ENGINE=InnoDB DEFAULT CHARSET utf8;
[xorm] [debug] 2014/10/30 22:11:38.161909 sql [CREATE TABLE IF NOT EXISTS `follow` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `user_id` BIGINT(20) NULL, `follow_id` BIGINT(20) NULL) ENGINE=InnoDB DEFAULT CHARSET utf8;] - args [[]] - execution took: 14238678ns
[xorm] [info]  2014/10/30 22:11:38.161998 [sql] CREATE UNIQUE INDEX `UQE_follow_FOLLOW` ON `follow` (`user_id`,`follow_id`);
[xorm] [debug] 2014/10/30 22:11:38.180806 sql [CREATE UNIQUE INDEX `UQE_follow_FOLLOW` ON `follow` (`user_id`,`follow_id`);] - args [[]] - execution took: 18779761ns
[xorm] [debug] 2014/10/30 22:11:38.180968 create table sql: [ CREATE TABLE IF NOT EXISTS `oauth2` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `uid` BIGINT(20) NULL, `type` INT NULL, `identity` VARCHAR(255) NULL, `token` TEXT NOT NULL, `created` DATETIME NULL, `updated` DATETIME NULL) ENGINE=InnoDB DEFAULT CHARSET utf8; ]
[xorm] [info]  2014/10/30 22:11:38.180986 [sql] CREATE TABLE IF NOT EXISTS `oauth2` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `uid` BIGINT(20) NULL, `type` INT NULL, `identity` VARCHAR(255) NULL, `token` TEXT NOT NULL, `created` DATETIME NULL, `updated` DATETIME NULL) ENGINE=InnoDB DEFAULT CHARSET utf8;
[xorm] [debug] 2014/10/30 22:11:38.203582 sql [CREATE TABLE IF NOT EXISTS `oauth2` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `uid` BIGINT(20) NULL, `type` INT NULL, `identity` VARCHAR(255) NULL, `token` TEXT NOT NULL, `created` DATETIME NULL, `updated` DATETIME NULL) ENGINE=InnoDB DEFAULT CHARSET utf8;] - args [[]] - execution took: 22577305ns
[xorm] [info]  2014/10/30 22:11:38.203658 [sql] CREATE UNIQUE INDEX `UQE_oauth2_S` ON `oauth2` (`uid`,`type`,`identity`);
[xorm] [debug] 2014/10/30 22:11:38.221902 sql [CREATE UNIQUE INDEX `UQE_oauth2_S` ON `oauth2` (`uid`,`type`,`identity`);] - args [[]] - execution took: 18219404ns
[xorm] [info]  2014/10/30 22:11:38.221927 [sql] CREATE UNIQUE INDEX `UQE_oauth2_OAUTH` ON `oauth2` (`type`,`identity`);
[xorm] [debug] 2014/10/30 22:11:38.246589 sql [CREATE UNIQUE INDEX `UQE_oauth2_OAUTH` ON `oauth2` (`type`,`identity`);] - args [[]] - execution took: 24641648ns
[xorm] [debug] 2014/10/30 22:11:38.246918 create table sql: [ CREATE TABLE IF NOT EXISTS `repository` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `owner_id` BIGINT(20) NULL, `lower_name` VARCHAR(255) NOT NULL, `name` VARCHAR(255) NOT NULL, `description` VARCHAR(255) NULL, `website` VARCHAR(255) NULL, `default_branch` VARCHAR(255) NULL, `num_watches` INT NULL, `num_stars` INT NULL, `num_forks` INT NULL, `num_issues` INT NULL, `num_closed_issues` INT NULL, `num_pulls` INT NULL, `num_closed_pulls` INT NULL, `num_milestones` INT NOT NULL DEFAULT 0, `num_closed_milestones` INT NOT NULL DEFAULT 0, `is_private` TINYINT(1) NULL, `is_bare` TINYINT(1) NULL, `is_goget` TINYINT(1) NULL, `is_mirror` TINYINT(1) NULL, `is_fork` TINYINT(1) NOT NULL DEFAULT false, `fork_id` BIGINT(20) NULL, `created` DATETIME NULL, `updated` DATETIME NULL) ENGINE=InnoDB DEFAULT CHARSET utf8; ]
[xorm] [info]  2014/10/30 22:11:38.246961 [sql] CREATE TABLE IF NOT EXISTS `repository` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `owner_id` BIGINT(20) NULL, `lower_name` VARCHAR(255) NOT NULL, `name` VARCHAR(255) NOT NULL, `description` VARCHAR(255) NULL, `website` VARCHAR(255) NULL, `default_branch` VARCHAR(255) NULL, `num_watches` INT NULL, `num_stars` INT NULL, `num_forks` INT NULL, `num_issues` INT NULL, `num_closed_issues` INT NULL, `num_pulls` INT NULL, `num_closed_pulls` INT NULL, `num_milestones` INT NOT NULL DEFAULT 0, `num_closed_milestones` INT NOT NULL DEFAULT 0, `is_private` TINYINT(1) NULL, `is_bare` TINYINT(1) NULL, `is_goget` TINYINT(1) NULL, `is_mirror` TINYINT(1) NULL, `is_fork` TINYINT(1) NOT NULL DEFAULT false, `fork_id` BIGINT(20) NULL, `created` DATETIME NULL, `updated` DATETIME NULL) ENGINE=InnoDB DEFAULT CHARSET utf8;
[xorm] [debug] 2014/10/30 22:11:38.297060 sql [CREATE TABLE IF NOT EXISTS `repository` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `owner_id` BIGINT(20) NULL, `lower_name` VARCHAR(255) NOT NULL, `name` VARCHAR(255) NOT NULL, `description` VARCHAR(255) NULL, `website` VARCHAR(255) NULL, `default_branch` VARCHAR(255) NULL, `num_watches` INT NULL, `num_stars` INT NULL, `num_forks` INT NULL, `num_issues` INT NULL, `num_closed_issues` INT NULL, `num_pulls` INT NULL, `num_closed_pulls` INT NULL, `num_milestones` INT NOT NULL DEFAULT 0, `num_closed_milestones` INT NOT NULL DEFAULT 0, `is_private` TINYINT(1) NULL, `is_bare` TINYINT(1) NULL, `is_goget` TINYINT(1) NULL, `is_mirror` TINYINT(1) NULL, `is_fork` TINYINT(1) NOT NULL DEFAULT false, `fork_id` BIGINT(20) NULL, `created` DATETIME NULL, `updated` DATETIME NULL) ENGINE=InnoDB DEFAULT CHARSET utf8;] - args [[]] - execution took: 50076310ns
[xorm] [info]  2014/10/30 22:11:38.297129 [sql] CREATE UNIQUE INDEX `UQE_repository_S` ON `repository` (`owner_id`,`lower_name`);
[xorm] [debug] 2014/10/30 22:11:38.320140 sql [CREATE UNIQUE INDEX `UQE_repository_S` ON `repository` (`owner_id`,`lower_name`);] - args [[]] - execution took: 22977136ns
[xorm] [info]  2014/10/30 22:11:38.320222 [sql] CREATE INDEX `IDX_repository_name` ON `repository` (`name`);
[xorm] [debug] 2014/10/30 22:11:38.347548 sql [CREATE INDEX `IDX_repository_name` ON `repository` (`name`);] - args [[]] - execution took: 27301679ns
[xorm] [info]  2014/10/30 22:11:38.347575 [sql] CREATE INDEX `IDX_repository_lower_name` ON `repository` (`lower_name`);
[xorm] [debug] 2014/10/30 22:11:38.365759 sql [CREATE INDEX `IDX_repository_lower_name` ON `repository` (`lower_name`);] - args [[]] - execution took: 18163199ns
[xorm] [debug] 2014/10/30 22:11:38.365900 create table sql: [ CREATE TABLE IF NOT EXISTS `watch` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `user_id` BIGINT(20) NULL, `repo_id` BIGINT(20) NULL) ENGINE=InnoDB DEFAULT CHARSET utf8; ]
[xorm] [info]  2014/10/30 22:11:38.365918 [sql] CREATE TABLE IF NOT EXISTS `watch` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `user_id` BIGINT(20) NULL, `repo_id` BIGINT(20) NULL) ENGINE=InnoDB DEFAULT CHARSET utf8;
[xorm] [debug] 2014/10/30 22:11:38.381365 sql [CREATE TABLE IF NOT EXISTS `watch` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `user_id` BIGINT(20) NULL, `repo_id` BIGINT(20) NULL) ENGINE=InnoDB DEFAULT CHARSET utf8;] - args [[]] - execution took: 15411699ns
[xorm] [info]  2014/10/30 22:11:38.381433 [sql] CREATE UNIQUE INDEX `UQE_watch_WATCH` ON `watch` (`user_id`,`repo_id`);
[xorm] [debug] 2014/10/30 22:11:38.396122 sql [CREATE UNIQUE INDEX `UQE_watch_WATCH` ON `watch` (`user_id`,`repo_id`);] - args [[]] - execution took: 14663781ns
[xorm] [debug] 2014/10/30 22:11:38.396253 create table sql: [ CREATE TABLE IF NOT EXISTS `star` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `uid` BIGINT(20) NULL, `repo_id` BIGINT(20) NULL) ENGINE=InnoDB DEFAULT CHARSET utf8; ]
[xorm] [info]  2014/10/30 22:11:38.396271 [sql] CREATE TABLE IF NOT EXISTS `star` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `uid` BIGINT(20) NULL, `repo_id` BIGINT(20) NULL) ENGINE=InnoDB DEFAULT CHARSET utf8;
[xorm] [debug] 2014/10/30 22:11:38.411219 sql [CREATE TABLE IF NOT EXISTS `star` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `uid` BIGINT(20) NULL, `repo_id` BIGINT(20) NULL) ENGINE=InnoDB DEFAULT CHARSET utf8;] - args [[]] - execution took: 14902441ns
[xorm] [info]  2014/10/30 22:11:38.411440 [sql] CREATE UNIQUE INDEX `UQE_star_S` ON `star` (`uid`,`repo_id`);
[xorm] [debug] 2014/10/30 22:11:38.425523 sql [CREATE UNIQUE INDEX `UQE_star_S` ON `star` (`uid`,`repo_id`);] - args [[]] - execution took: 14048563ns
[xorm] [debug] 2014/10/30 22:11:38.425728 create table sql: [ CREATE TABLE IF NOT EXISTS `action` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `user_id` BIGINT(20) NULL, `op_type` INT NULL, `act_user_id` BIGINT(20) NULL, `act_user_name` VARCHAR(255) NULL, `act_email` VARCHAR(255) NULL, `repo_id` BIGINT(20) NULL, `repo_user_name` VARCHAR(255) NULL, `repo_name` VARCHAR(255) NULL, `ref_name` VARCHAR(255) NULL, `is_private` TINYINT(1) NOT NULL DEFAULT false, `content` TEXT NULL, `created` DATETIME NULL) ENGINE=InnoDB DEFAULT CHARSET utf8; ]
[xorm] [info]  2014/10/30 22:11:38.425746 [sql] CREATE TABLE IF NOT EXISTS `action` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `user_id` BIGINT(20) NULL, `op_type` INT NULL, `act_user_id` BIGINT(20) NULL, `act_user_name` VARCHAR(255) NULL, `act_email` VARCHAR(255) NULL, `repo_id` BIGINT(20) NULL, `repo_user_name` VARCHAR(255) NULL, `repo_name` VARCHAR(255) NULL, `ref_name` VARCHAR(255) NULL, `is_private` TINYINT(1) NOT NULL DEFAULT false, `content` TEXT NULL, `created` DATETIME NULL) ENGINE=InnoDB DEFAULT CHARSET utf8;
[xorm] [debug] 2014/10/30 22:11:38.442452 sql [CREATE TABLE IF NOT EXISTS `action` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `user_id` BIGINT(20) NULL, `op_type` INT NULL, `act_user_id` BIGINT(20) NULL, `act_user_name` VARCHAR(255) NULL, `act_email` VARCHAR(255) NULL, `repo_id` BIGINT(20) NULL, `repo_user_name` VARCHAR(255) NULL, `repo_name` VARCHAR(255) NULL, `ref_name` VARCHAR(255) NULL, `is_private` TINYINT(1) NOT NULL DEFAULT false, `content` TEXT NULL, `created` DATETIME NULL) ENGINE=InnoDB DEFAULT CHARSET utf8;] - args [[]] - execution took: 16673165ns
[xorm] [debug] 2014/10/30 22:11:38.442621 create table sql: [ CREATE TABLE IF NOT EXISTS `access` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `user_name` VARCHAR(255) NULL, `repo_name` VARCHAR(255) NULL, `mode` INT NULL, `created` DATETIME NULL) ENGINE=InnoDB DEFAULT CHARSET utf8; ]
[xorm] [info]  2014/10/30 22:11:38.442639 [sql] CREATE TABLE IF NOT EXISTS `access` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `user_name` VARCHAR(255) NULL, `repo_name` VARCHAR(255) NULL, `mode` INT NULL, `created` DATETIME NULL) ENGINE=InnoDB DEFAULT CHARSET utf8;
[xorm] [debug] 2014/10/30 22:11:38.458557 sql [CREATE TABLE IF NOT EXISTS `access` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `user_name` VARCHAR(255) NULL, `repo_name` VARCHAR(255) NULL, `mode` INT NULL, `created` DATETIME NULL) ENGINE=InnoDB DEFAULT CHARSET utf8;] - args [[]] - execution took: 15897175ns
[xorm] [info]  2014/10/30 22:11:38.458639 [sql] CREATE UNIQUE INDEX `UQE_access_S` ON `access` (`user_name`,`repo_name`,`mode`);
[xorm] [debug] 2014/10/30 22:11:38.474018 sql [CREATE UNIQUE INDEX `UQE_access_S` ON `access` (`user_name`,`repo_name`,`mode`);] - args [[]] - execution took: 15338063ns
[xorm] [debug] 2014/10/30 22:11:38.474234 create table sql: [ CREATE TABLE IF NOT EXISTS `issue` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `repo_id` BIGINT(20) NULL, `index` BIGINT(20) NULL, `name` VARCHAR(255) NULL, `poster_id` BIGINT(20) NULL, `label_ids` TEXT NULL, `milestone_id` BIGINT(20) NULL, `assignee_id` BIGINT(20) NULL, `is_pull` TINYINT(1) NULL, `is_closed` TINYINT(1) NULL, `content` TEXT NULL, `priority` INT NULL, `num_comments` INT NULL, `deadline` DATETIME NULL, `created` DATETIME NULL, `updated` DATETIME NULL) ENGINE=InnoDB DEFAULT CHARSET utf8; ]
[xorm] [info]  2014/10/30 22:11:38.474276 [sql] CREATE TABLE IF NOT EXISTS `issue` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `repo_id` BIGINT(20) NULL, `index` BIGINT(20) NULL, `name` VARCHAR(255) NULL, `poster_id` BIGINT(20) NULL, `label_ids` TEXT NULL, `milestone_id` BIGINT(20) NULL, `assignee_id` BIGINT(20) NULL, `is_pull` TINYINT(1) NULL, `is_closed` TINYINT(1) NULL, `content` TEXT NULL, `priority` INT NULL, `num_comments` INT NULL, `deadline` DATETIME NULL, `created` DATETIME NULL, `updated` DATETIME NULL) ENGINE=InnoDB DEFAULT CHARSET utf8;
[xorm] [debug] 2014/10/30 22:11:38.495599 sql [CREATE TABLE IF NOT EXISTS `issue` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `repo_id` BIGINT(20) NULL, `index` BIGINT(20) NULL, `name` VARCHAR(255) NULL, `poster_id` BIGINT(20) NULL, `label_ids` TEXT NULL, `milestone_id` BIGINT(20) NULL, `assignee_id` BIGINT(20) NULL, `is_pull` TINYINT(1) NULL, `is_closed` TINYINT(1) NULL, `content` TEXT NULL, `priority` INT NULL, `num_comments` INT NULL, `deadline` DATETIME NULL, `created` DATETIME NULL, `updated` DATETIME NULL) ENGINE=InnoDB DEFAULT CHARSET utf8;] - args [[]] - execution took: 21284307ns
[xorm] [info]  2014/10/30 22:11:38.495722 [sql] CREATE INDEX `IDX_issue_repo_id` ON `issue` (`repo_id`);
[xorm] [debug] 2014/10/30 22:11:38.512182 sql [CREATE INDEX `IDX_issue_repo_id` ON `issue` (`repo_id`);] - args [[]] - execution took: 16432659ns
[xorm] [debug] 2014/10/30 22:11:38.512363 create table sql: [ CREATE TABLE IF NOT EXISTS `comment` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `type` INT NULL, `poster_id` BIGINT(20) NULL, `issue_id` BIGINT(20) NULL, `commit_id` BIGINT(20) NULL, `line` BIGINT(20) NULL, `content` TEXT NULL, `created` DATETIME NULL) ENGINE=InnoDB DEFAULT CHARSET utf8; ]
[xorm] [info]  2014/10/30 22:11:38.512388 [sql] CREATE TABLE IF NOT EXISTS `comment` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `type` INT NULL, `poster_id` BIGINT(20) NULL, `issue_id` BIGINT(20) NULL, `commit_id` BIGINT(20) NULL, `line` BIGINT(20) NULL, `content` TEXT NULL, `created` DATETIME NULL) ENGINE=InnoDB DEFAULT CHARSET utf8;
[xorm] [debug] 2014/10/30 22:11:38.532678 sql [CREATE TABLE IF NOT EXISTS `comment` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `type` INT NULL, `poster_id` BIGINT(20) NULL, `issue_id` BIGINT(20) NULL, `commit_id` BIGINT(20) NULL, `line` BIGINT(20) NULL, `content` TEXT NULL, `created` DATETIME NULL) ENGINE=InnoDB DEFAULT CHARSET utf8;] - args [[]] - execution took: 20212684ns
[xorm] [debug] 2014/10/30 22:11:38.532804 create table sql: [ CREATE TABLE IF NOT EXISTS `attachment` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `issue_id` BIGINT(20) NULL, `comment_id` BIGINT(20) NULL, `name` VARCHAR(255) NULL, `path` TEXT NULL, `created` DATETIME NULL) ENGINE=InnoDB DEFAULT CHARSET utf8; ]
[xorm] [info]  2014/10/30 22:11:38.532819 [sql] CREATE TABLE IF NOT EXISTS `attachment` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `issue_id` BIGINT(20) NULL, `comment_id` BIGINT(20) NULL, `name` VARCHAR(255) NULL, `path` TEXT NULL, `created` DATETIME NULL) ENGINE=InnoDB DEFAULT CHARSET utf8;
[xorm] [debug] 2014/10/30 22:11:38.543802 sql [CREATE TABLE IF NOT EXISTS `attachment` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `issue_id` BIGINT(20) NULL, `comment_id` BIGINT(20) NULL, `name` VARCHAR(255) NULL, `path` TEXT NULL, `created` DATETIME NULL) ENGINE=InnoDB DEFAULT CHARSET utf8;] - args [[]] - execution took: 10937835ns
[xorm] [debug] 2014/10/30 22:11:38.544142 create table sql: [ CREATE TABLE IF NOT EXISTS `issue_user` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `uid` BIGINT(20) NULL, `issue_id` BIGINT(20) NULL, `repo_id` BIGINT(20) NULL, `milestone_id` BIGINT(20) NULL, `is_read` TINYINT(1) NULL, `is_assigned` TINYINT(1) NULL, `is_mentioned` TINYINT(1) NULL, `is_poster` TINYINT(1) NULL, `is_closed` TINYINT(1) NULL) ENGINE=InnoDB DEFAULT CHARSET utf8; ]
[xorm] [info]  2014/10/30 22:11:38.544170 [sql] CREATE TABLE IF NOT EXISTS `issue_user` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `uid` BIGINT(20) NULL, `issue_id` BIGINT(20) NULL, `repo_id` BIGINT(20) NULL, `milestone_id` BIGINT(20) NULL, `is_read` TINYINT(1) NULL, `is_assigned` TINYINT(1) NULL, `is_mentioned` TINYINT(1) NULL, `is_poster` TINYINT(1) NULL, `is_closed` TINYINT(1) NULL) ENGINE=InnoDB DEFAULT CHARSET utf8;
[xorm] [debug] 2014/10/30 22:11:38.552965 sql [CREATE TABLE IF NOT EXISTS `issue_user` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `uid` BIGINT(20) NULL, `issue_id` BIGINT(20) NULL, `repo_id` BIGINT(20) NULL, `milestone_id` BIGINT(20) NULL, `is_read` TINYINT(1) NULL, `is_assigned` TINYINT(1) NULL, `is_mentioned` TINYINT(1) NULL, `is_poster` TINYINT(1) NULL, `is_closed` TINYINT(1) NULL) ENGINE=InnoDB DEFAULT CHARSET utf8;] - args [[]] - execution took: 8774084ns
[xorm] [info]  2014/10/30 22:11:38.553069 [sql] CREATE INDEX `IDX_issue_user_uid` ON `issue_user` (`uid`);
[xorm] [debug] 2014/10/30 22:11:38.566200 sql [CREATE INDEX `IDX_issue_user_uid` ON `issue_user` (`uid`);] - args [[]] - execution took: 13106368ns
[xorm] [info]  2014/10/30 22:11:38.566222 [sql] CREATE INDEX `IDX_issue_user_repo_id` ON `issue_user` (`repo_id`);
[xorm] [debug] 2014/10/30 22:11:38.585138 sql [CREATE INDEX `IDX_issue_user_repo_id` ON `issue_user` (`repo_id`);] - args [[]] - execution took: 18894385ns
[xorm] [debug] 2014/10/30 22:11:38.585323 create table sql: [ CREATE TABLE IF NOT EXISTS `label` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `repo_id` BIGINT(20) NULL, `name` VARCHAR(255) NULL, `color` VARCHAR(7) NULL, `num_issues` INT NULL, `num_closed_issues` INT NULL) ENGINE=InnoDB DEFAULT CHARSET utf8; ]
[xorm] [info]  2014/10/30 22:11:38.585340 [sql] CREATE TABLE IF NOT EXISTS `label` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `repo_id` BIGINT(20) NULL, `name` VARCHAR(255) NULL, `color` VARCHAR(7) NULL, `num_issues` INT NULL, `num_closed_issues` INT NULL) ENGINE=InnoDB DEFAULT CHARSET utf8;
[xorm] [debug] 2014/10/30 22:11:38.602316 sql [CREATE TABLE IF NOT EXISTS `label` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `repo_id` BIGINT(20) NULL, `name` VARCHAR(255) NULL, `color` VARCHAR(7) NULL, `num_issues` INT NULL, `num_closed_issues` INT NULL) ENGINE=InnoDB DEFAULT CHARSET utf8;] - args [[]] - execution took: 16932307ns
[xorm] [info]  2014/10/30 22:11:38.602561 [sql] CREATE INDEX `IDX_label_repo_id` ON `label` (`repo_id`);
[xorm] [debug] 2014/10/30 22:11:38.618322 sql [CREATE INDEX `IDX_label_repo_id` ON `label` (`repo_id`);] - args [[]] - execution took: 15734035ns
[xorm] [debug] 2014/10/30 22:11:38.618494 create table sql: [ CREATE TABLE IF NOT EXISTS `milestone` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `repo_id` BIGINT(20) NULL, `index` BIGINT(20) NULL, `name` VARCHAR(255) NULL, `content` TEXT NULL, `is_closed` TINYINT(1) NULL, `num_issues` INT NULL, `num_closed_issues` INT NULL, `completeness` INT NULL, `deadline` DATETIME NULL, `closed_date` DATETIME NULL) ENGINE=InnoDB DEFAULT CHARSET utf8; ]
[xorm] [info]  2014/10/30 22:11:38.618511 [sql] CREATE TABLE IF NOT EXISTS `milestone` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `repo_id` BIGINT(20) NULL, `index` BIGINT(20) NULL, `name` VARCHAR(255) NULL, `content` TEXT NULL, `is_closed` TINYINT(1) NULL, `num_issues` INT NULL, `num_closed_issues` INT NULL, `completeness` INT NULL, `deadline` DATETIME NULL, `closed_date` DATETIME NULL) ENGINE=InnoDB DEFAULT CHARSET utf8;
[xorm] [debug] 2014/10/30 22:11:38.631880 sql [CREATE TABLE IF NOT EXISTS `milestone` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `repo_id` BIGINT(20) NULL, `index` BIGINT(20) NULL, `name` VARCHAR(255) NULL, `content` TEXT NULL, `is_closed` TINYINT(1) NULL, `num_issues` INT NULL, `num_closed_issues` INT NULL, `completeness` INT NULL, `deadline` DATETIME NULL, `closed_date` DATETIME NULL) ENGINE=InnoDB DEFAULT CHARSET utf8;] - args [[]] - execution took: 13343142ns
[xorm] [info]  2014/10/30 22:11:38.632012 [sql] CREATE INDEX `IDX_milestone_repo_id` ON `milestone` (`repo_id`);
[xorm] [debug] 2014/10/30 22:11:38.649371 sql [CREATE INDEX `IDX_milestone_repo_id` ON `milestone` (`repo_id`);] - args [[]] - execution took: 17329049ns
[xorm] [debug] 2014/10/30 22:11:38.649543 create table sql: [ CREATE TABLE IF NOT EXISTS `mirror` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `repo_id` BIGINT(20) NULL, `repo_name` VARCHAR(255) NULL, `interval` INT NULL, `updated` DATETIME NULL, `next_update` DATETIME NULL) ENGINE=InnoDB DEFAULT CHARSET utf8; ]
[xorm] [info]  2014/10/30 22:11:38.649562 [sql] CREATE TABLE IF NOT EXISTS `mirror` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `repo_id` BIGINT(20) NULL, `repo_name` VARCHAR(255) NULL, `interval` INT NULL, `updated` DATETIME NULL, `next_update` DATETIME NULL) ENGINE=InnoDB DEFAULT CHARSET utf8;
[xorm] [debug] 2014/10/30 22:11:38.661733 sql [CREATE TABLE IF NOT EXISTS `mirror` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `repo_id` BIGINT(20) NULL, `repo_name` VARCHAR(255) NULL, `interval` INT NULL, `updated` DATETIME NULL, `next_update` DATETIME NULL) ENGINE=InnoDB DEFAULT CHARSET utf8;] - args [[]] - execution took: 12138045ns
[xorm] [debug] 2014/10/30 22:11:38.661941 create table sql: [ CREATE TABLE IF NOT EXISTS `release` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `repo_id` BIGINT(20) NULL, `publisher_id` BIGINT(20) NULL, `tag_name` VARCHAR(255) NULL, `lower_tag_name` VARCHAR(255) NULL, `target` VARCHAR(255) NULL, `title` VARCHAR(255) NULL, `sha1` VARCHAR(40) NULL, `num_commits` INT NULL, `note` TEXT NULL, `is_draft` TINYINT(1) NOT NULL DEFAULT false, `is_prerelease` TINYINT(1) NULL, `created` DATETIME NULL) ENGINE=InnoDB DEFAULT CHARSET utf8; ]
[xorm] [info]  2014/10/30 22:11:38.661960 [sql] CREATE TABLE IF NOT EXISTS `release` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `repo_id` BIGINT(20) NULL, `publisher_id` BIGINT(20) NULL, `tag_name` VARCHAR(255) NULL, `lower_tag_name` VARCHAR(255) NULL, `target` VARCHAR(255) NULL, `title` VARCHAR(255) NULL, `sha1` VARCHAR(40) NULL, `num_commits` INT NULL, `note` TEXT NULL, `is_draft` TINYINT(1) NOT NULL DEFAULT false, `is_prerelease` TINYINT(1) NULL, `created` DATETIME NULL) ENGINE=InnoDB DEFAULT CHARSET utf8;
[xorm] [debug] 2014/10/30 22:11:38.673660 sql [CREATE TABLE IF NOT EXISTS `release` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `repo_id` BIGINT(20) NULL, `publisher_id` BIGINT(20) NULL, `tag_name` VARCHAR(255) NULL, `lower_tag_name` VARCHAR(255) NULL, `target` VARCHAR(255) NULL, `title` VARCHAR(255) NULL, `sha1` VARCHAR(40) NULL, `num_commits` INT NULL, `note` TEXT NULL, `is_draft` TINYINT(1) NOT NULL DEFAULT false, `is_prerelease` TINYINT(1) NULL, `created` DATETIME NULL) ENGINE=InnoDB DEFAULT CHARSET utf8;] - args [[]] - execution took: 11668557ns
[xorm] [debug] 2014/10/30 22:11:38.673849 create table sql: [ CREATE TABLE IF NOT EXISTS `login_source` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `type` INT NULL, `name` VARCHAR(255) NULL, `is_actived` TINYINT(1) NOT NULL DEFAULT false, `cfg` TEXT NULL, `allow_auto_register` TINYINT(1) NOT NULL DEFAULT false, `created` DATETIME NULL, `updated` DATETIME NULL) ENGINE=InnoDB DEFAULT CHARSET utf8; ]
[xorm] [info]  2014/10/30 22:11:38.673865 [sql] CREATE TABLE IF NOT EXISTS `login_source` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `type` INT NULL, `name` VARCHAR(255) NULL, `is_actived` TINYINT(1) NOT NULL DEFAULT false, `cfg` TEXT NULL, `allow_auto_register` TINYINT(1) NOT NULL DEFAULT false, `created` DATETIME NULL, `updated` DATETIME NULL) ENGINE=InnoDB DEFAULT CHARSET utf8;
[xorm] [debug] 2014/10/30 22:11:38.683372 sql [CREATE TABLE IF NOT EXISTS `login_source` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `type` INT NULL, `name` VARCHAR(255) NULL, `is_actived` TINYINT(1) NOT NULL DEFAULT false, `cfg` TEXT NULL, `allow_auto_register` TINYINT(1) NOT NULL DEFAULT false, `created` DATETIME NULL, `updated` DATETIME NULL) ENGINE=InnoDB DEFAULT CHARSET utf8;] - args [[]] - execution took: 9485524ns
[xorm] [info]  2014/10/30 22:11:38.683452 [sql] CREATE UNIQUE INDEX `UQE_login_source_name` ON `login_source` (`name`);
[xorm] [debug] 2014/10/30 22:11:38.697367 sql [CREATE UNIQUE INDEX `UQE_login_source_name` ON `login_source` (`name`);] - args [[]] - execution took: 13891106ns
[xorm] [debug] 2014/10/30 22:11:38.697608 create table sql: [ CREATE TABLE IF NOT EXISTS `webhook` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `repo_id` BIGINT(20) NULL, `url` TEXT NULL, `content_type` INT NULL, `secret` TEXT NULL, `events` TEXT NULL, `is_ssl` TINYINT(1) NULL, `is_active` TINYINT(1) NULL, `hook_task_type` INT NULL, `meta` TEXT NULL, `org_id` BIGINT(20) NULL) ENGINE=InnoDB DEFAULT CHARSET utf8; ]
[xorm] [info]  2014/10/30 22:11:38.697634 [sql] CREATE TABLE IF NOT EXISTS `webhook` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `repo_id` BIGINT(20) NULL, `url` TEXT NULL, `content_type` INT NULL, `secret` TEXT NULL, `events` TEXT NULL, `is_ssl` TINYINT(1) NULL, `is_active` TINYINT(1) NULL, `hook_task_type` INT NULL, `meta` TEXT NULL, `org_id` BIGINT(20) NULL) ENGINE=InnoDB DEFAULT CHARSET utf8;
[xorm] [debug] 2014/10/30 22:11:38.712898 sql [CREATE TABLE IF NOT EXISTS `webhook` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `repo_id` BIGINT(20) NULL, `url` TEXT NULL, `content_type` INT NULL, `secret` TEXT NULL, `events` TEXT NULL, `is_ssl` TINYINT(1) NULL, `is_active` TINYINT(1) NULL, `hook_task_type` INT NULL, `meta` TEXT NULL, `org_id` BIGINT(20) NULL) ENGINE=InnoDB DEFAULT CHARSET utf8;] - args [[]] - execution took: 15243144ns
[xorm] [debug] 2014/10/30 22:11:38.713044 create table sql: [ CREATE TABLE IF NOT EXISTS `update_task` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `uuid` VARCHAR(255) NULL, `ref_name` VARCHAR(255) NULL, `old_commit_id` VARCHAR(255) NULL, `new_commit_id` VARCHAR(255) NULL) ENGINE=InnoDB DEFAULT CHARSET utf8; ]
[xorm] [info]  2014/10/30 22:11:38.713069 [sql] CREATE TABLE IF NOT EXISTS `update_task` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `uuid` VARCHAR(255) NULL, `ref_name` VARCHAR(255) NULL, `old_commit_id` VARCHAR(255) NULL, `new_commit_id` VARCHAR(255) NULL) ENGINE=InnoDB DEFAULT CHARSET utf8;
[xorm] [debug] 2014/10/30 22:11:38.722517 sql [CREATE TABLE IF NOT EXISTS `update_task` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `uuid` VARCHAR(255) NULL, `ref_name` VARCHAR(255) NULL, `old_commit_id` VARCHAR(255) NULL, `new_commit_id` VARCHAR(255) NULL) ENGINE=InnoDB DEFAULT CHARSET utf8;] - args [[]] - execution took: 9426018ns
[xorm] [info]  2014/10/30 22:11:38.722593 [sql] CREATE INDEX `IDX_update_task_uuid` ON `update_task` (`uuid`);
[xorm] [debug] 2014/10/30 22:11:38.736130 sql [CREATE INDEX `IDX_update_task_uuid` ON `update_task` (`uuid`);] - args [[]] - execution took: 13510576ns
[xorm] [debug] 2014/10/30 22:11:38.736289 create table sql: [ CREATE TABLE IF NOT EXISTS `hook_task` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `uuid` VARCHAR(255) NULL, `type` INT NULL, `url` VARCHAR(255) NULL, `payload_content` TEXT NULL, `content_type` INT NULL, `event_type` VARCHAR(255) NULL, `is_ssl` TINYINT(1) NULL, `is_delivered` TINYINT(1) NULL, `is_succeed` TINYINT(1) NULL) ENGINE=InnoDB DEFAULT CHARSET utf8; ]
[xorm] [info]  2014/10/30 22:11:38.736307 [sql] CREATE TABLE IF NOT EXISTS `hook_task` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `uuid` VARCHAR(255) NULL, `type` INT NULL, `url` VARCHAR(255) NULL, `payload_content` TEXT NULL, `content_type` INT NULL, `event_type` VARCHAR(255) NULL, `is_ssl` TINYINT(1) NULL, `is_delivered` TINYINT(1) NULL, `is_succeed` TINYINT(1) NULL) ENGINE=InnoDB DEFAULT CHARSET utf8;
[xorm] [debug] 2014/10/30 22:11:38.752716 sql [CREATE TABLE IF NOT EXISTS `hook_task` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `uuid` VARCHAR(255) NULL, `type` INT NULL, `url` VARCHAR(255) NULL, `payload_content` TEXT NULL, `content_type` INT NULL, `event_type` VARCHAR(255) NULL, `is_ssl` TINYINT(1) NULL, `is_delivered` TINYINT(1) NULL, `is_succeed` TINYINT(1) NULL) ENGINE=InnoDB DEFAULT CHARSET utf8;] - args [[]] - execution took: 16377485ns
[xorm] [debug] 2014/10/30 22:11:38.752916 create table sql: [ CREATE TABLE IF NOT EXISTS `team` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `org_id` BIGINT(20) NULL, `lower_name` VARCHAR(255) NULL, `name` VARCHAR(255) NULL, `description` VARCHAR(255) NULL, `authorize` INT NULL, `repo_ids` TEXT NULL, `num_repos` INT NULL, `num_members` INT NULL) ENGINE=InnoDB DEFAULT CHARSET utf8; ]
[xorm] [info]  2014/10/30 22:11:38.752933 [sql] CREATE TABLE IF NOT EXISTS `team` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `org_id` BIGINT(20) NULL, `lower_name` VARCHAR(255) NULL, `name` VARCHAR(255) NULL, `description` VARCHAR(255) NULL, `authorize` INT NULL, `repo_ids` TEXT NULL, `num_repos` INT NULL, `num_members` INT NULL) ENGINE=InnoDB DEFAULT CHARSET utf8;
[xorm] [debug] 2014/10/30 22:11:38.762905 sql [CREATE TABLE IF NOT EXISTS `team` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `org_id` BIGINT(20) NULL, `lower_name` VARCHAR(255) NULL, `name` VARCHAR(255) NULL, `description` VARCHAR(255) NULL, `authorize` INT NULL, `repo_ids` TEXT NULL, `num_repos` INT NULL, `num_members` INT NULL) ENGINE=InnoDB DEFAULT CHARSET utf8;] - args [[]] - execution took: 9952688ns
[xorm] [info]  2014/10/30 22:11:38.763006 [sql] CREATE INDEX `IDX_team_org_id` ON `team` (`org_id`);
[xorm] [debug] 2014/10/30 22:11:38.778020 sql [CREATE INDEX `IDX_team_org_id` ON `team` (`org_id`);] - args [[]] - execution took: 14987601ns
[xorm] [debug] 2014/10/30 22:11:38.778154 create table sql: [ CREATE TABLE IF NOT EXISTS `org_user` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `uid` BIGINT(20) NULL, `org_id` BIGINT(20) NULL, `is_public` TINYINT(1) NULL, `is_owner` TINYINT(1) NULL, `num_teams` INT NULL) ENGINE=InnoDB DEFAULT CHARSET utf8; ]
[xorm] [info]  2014/10/30 22:11:38.778174 [sql] CREATE TABLE IF NOT EXISTS `org_user` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `uid` BIGINT(20) NULL, `org_id` BIGINT(20) NULL, `is_public` TINYINT(1) NULL, `is_owner` TINYINT(1) NULL, `num_teams` INT NULL) ENGINE=InnoDB DEFAULT CHARSET utf8;
[xorm] [debug] 2014/10/30 22:11:38.795951 sql [CREATE TABLE IF NOT EXISTS `org_user` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `uid` BIGINT(20) NULL, `org_id` BIGINT(20) NULL, `is_public` TINYINT(1) NULL, `is_owner` TINYINT(1) NULL, `num_teams` INT NULL) ENGINE=InnoDB DEFAULT CHARSET utf8;] - args [[]] - execution took: 17749785ns
[xorm] [info]  2014/10/30 22:11:38.796052 [sql] CREATE UNIQUE INDEX `UQE_org_user_S` ON `org_user` (`uid`,`org_id`);
[xorm] [debug] 2014/10/30 22:11:38.810370 sql [CREATE UNIQUE INDEX `UQE_org_user_S` ON `org_user` (`uid`,`org_id`);] - args [[]] - execution took: 14286228ns
[xorm] [info]  2014/10/30 22:11:38.810460 [sql] CREATE INDEX `IDX_org_user_uid` ON `org_user` (`uid`);
[xorm] [debug] 2014/10/30 22:11:38.824848 sql [CREATE INDEX `IDX_org_user_uid` ON `org_user` (`uid`);] - args [[]] - execution took: 14361216ns
[xorm] [info]  2014/10/30 22:11:38.824870 [sql] CREATE INDEX `IDX_org_user_org_id` ON `org_user` (`org_id`);
[xorm] [debug] 2014/10/30 22:11:38.844822 sql [CREATE INDEX `IDX_org_user_org_id` ON `org_user` (`org_id`);] - args [[]] - execution took: 19931674ns
[xorm] [debug] 2014/10/30 22:11:38.844977 create table sql: [ CREATE TABLE IF NOT EXISTS `team_user` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `uid` BIGINT(20) NULL, `org_id` BIGINT(20) NULL, `team_id` BIGINT(20) NULL) ENGINE=InnoDB DEFAULT CHARSET utf8; ]
[xorm] [info]  2014/10/30 22:11:38.844998 [sql] CREATE TABLE IF NOT EXISTS `team_user` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `uid` BIGINT(20) NULL, `org_id` BIGINT(20) NULL, `team_id` BIGINT(20) NULL) ENGINE=InnoDB DEFAULT CHARSET utf8;
[xorm] [debug] 2014/10/30 22:11:38.863052 sql [CREATE TABLE IF NOT EXISTS `team_user` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `uid` BIGINT(20) NULL, `org_id` BIGINT(20) NULL, `team_id` BIGINT(20) NULL) ENGINE=InnoDB DEFAULT CHARSET utf8;] - args [[]] - execution took: 18033091ns
[xorm] [info]  2014/10/30 22:11:38.863137 [sql] CREATE INDEX `IDX_team_user_org_id` ON `team_user` (`org_id`);
[xorm] [debug] 2014/10/30 22:11:38.877245 sql [CREATE INDEX `IDX_team_user_org_id` ON `team_user` (`org_id`);] - args [[]] - execution took: 14083575ns
[xorm] [debug] 2014/10/30 22:11:38.877357 create table sql: [ CREATE TABLE IF NOT EXISTS `notice` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `type` INT NULL, `description` TEXT NULL, `created` DATETIME NULL) ENGINE=InnoDB DEFAULT CHARSET utf8; ]
[xorm] [info]  2014/10/30 22:11:38.877375 [sql] CREATE TABLE IF NOT EXISTS `notice` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `type` INT NULL, `description` TEXT NULL, `created` DATETIME NULL) ENGINE=InnoDB DEFAULT CHARSET utf8;
[xorm] [debug] 2014/10/30 22:11:38.895986 sql [CREATE TABLE IF NOT EXISTS `notice` (`id` BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL, `type` INT NULL, `description` TEXT NULL, `created` DATETIME NULL) ENGINE=InnoDB DEFAULT CHARSET utf8;] - args [[]] - execution took: 18586866ns

This side is right! I changed #models.go line 132 from

    if err = x.Sync2(tables...); err != nil {

to

    if err = x.StoreEngine("InnoDB").Sync2(tables...); err != nil {

@luto

from gogs.

luto avatar luto commented on May 13, 2024

got it working. Thank you for you help and support! :)

from gogs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.