harness-drone/pkg/database
Nurahmadie 7cf4f2eb89 Preliminary MySQL support. Barely tested.
Requirements:
MySQL/MariaDB need to be configured with this settings:

  innodb_file_format = Barracuda
  innodb_file_per_table = On
  innodb_large_prefix = On

to support key prefix length up to 3042 bytes.

MySQL/MariaDB DSN will need this parameter:

  parseTime=true

as per [1]

The migration system itself mostly inspired by Rails (ActiveRecord),
but it still rough at the edges. Could use some inputs.

Next Todo: more testing!

[1]  https://github.com/go-sql-driver/mysql#parsetime
2014-03-14 02:28:10 +07:00
..
encrypt initial public commit 2014-02-07 03:10:01 -07:00
migrate Preliminary MySQL support. Barely tested. 2014-03-14 02:28:10 +07:00
schema removed github domain and url from schema.go for unit tests 2014-02-17 23:10:20 -07:00
testing Move database schema to migration script. 2014-03-10 20:28:04 +07:00
builds.go initial public commit 2014-02-07 03:10:01 -07:00
commits.go initial public commit 2014-02-07 03:10:01 -07:00
database.go Preliminary MySQL support. Barely tested. 2014-03-14 02:28:10 +07:00
members.go fixed issue updating team member roles 2014-02-21 13:26:50 -07:00
repos.go Integrate migrations with drone. 2014-02-16 03:47:30 +07:00
settings.go Added GitHubApiUrl and GitHubDomain to settings and template 2014-02-16 11:45:14 +06:00
teams.go initial public commit 2014-02-07 03:10:01 -07:00
users.go partial fix to issue #50 and issue #37 to select token from database 2014-02-11 16:05:53 -07:00