harness-drone/pkg/database/migrate
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
..
1_setup_tables.go Preliminary MySQL support. Barely tested. 2014-03-14 02:28:10 +07:00
2_setup_indices.go Preliminary MySQL support. Barely tested. 2014-03-14 02:28:10 +07:00
201402200603_rename_privelege_to_privilege.go Actually use --driver option to set database driver for drone. 2014-03-08 12:19:28 +07:00
201402211147_github_enterprise_support.go Actually use --driver option to set database driver for drone. 2014-03-08 12:19:28 +07:00
20140310104446_add_open_invitation_column.go Add usage info at migration script generator. 2014-03-12 08:33:04 +07:00
all.go Move database schema to migration script. 2014-03-10 20:28:04 +07:00
api.go Preliminary MySQL support. Barely tested. 2014-03-14 02:28:10 +07:00
column_type.go Add wrapper for common column types for easier column type 2014-03-13 18:53:52 +07:00
migrate.go Preliminary MySQL support. Barely tested. 2014-03-14 02:28:10 +07:00
migration Add usage info at migration script generator. 2014-03-12 08:33:04 +07:00
mysql.go Preliminary MySQL support. Barely tested. 2014-03-14 02:28:10 +07:00
postgresql.go Preliminary MySQL support. Barely tested. 2014-03-14 02:28:10 +07:00
sqlite.go Preliminary MySQL support. Barely tested. 2014-03-14 02:28:10 +07:00
sqlite_test.go Refactor tests, add test for ChangeColumn method. 2014-03-12 07:04:34 +07:00
util.go Implement ChangeColumn, AddIndex, and DropIndex methods for Operation interface. 2014-03-10 07:11:15 +07:00