Commit graph

145 commits

Author SHA1 Message Date
Nurahmadie
d9e4f3f509 Add shell script to generate migration script. 2014-02-19 08:15:51 +07:00
Nurahmadie
7b4c698e79 Refactor columns matching method 2014-02-19 07:38:53 +07:00
Nurahmadie
21f7fcb853 Fix index operations:
- Pass args as variadic params
- Tests for index operations
- Refactor fetchColumns
2014-02-19 01:11:41 +07:00
Nurahmadie
8d7cf16a89 Add func to fetch SQL definition for indices.
Also rearrange sql.Result and err declaration.
2014-02-18 21:22:22 +07:00
Nurahmadie
7a75c2d004 Keep indices when dropping/renaming columns. 2014-02-18 18:32:04 +07:00
Brad Rydzewski
2867818679 removed github domain and url from schema.go for unit tests 2014-02-17 23:10:20 -07:00
Brad Rydzewski
a200c7a0a2 altered migration to set default github domain and url 2014-02-17 23:08:06 -07:00
Brad Rydzewski
cb042e1c1a fixed compile error in migration script 2014-02-17 22:48:31 -07:00
Brad Rydzewski
bbb4bf48e0 Merge remote-tracking branch 'origin/master' 2014-02-17 22:42:01 -07:00
Brad Rydzewski
0e83e76ef4 removed unused migration sample file 2014-02-17 22:41:56 -07:00
Brad Rydzewski
85e60e4ee2 Merge pull request #75 from floatdrop/github-enterprise-support
GitHub Enterprise Support
2014-02-17 21:38:28 -08:00
Brad Rydzewski
7ce1e55ac3 Merge pull request #83 from fudanchii/migration
Migration system for sqlite
2014-02-17 20:46:13 -08:00
Brad Rydzewski
37fea25974 fixed Makefile issue with missing $ 2014-02-17 20:47:12 -07:00
Brad Rydzewski
9380f83c47 updated make deps to use go's bleeding edge archive package 2014-02-17 20:36:00 -07:00
Brad Rydzewski
ed33bf7fbe fixed broken link on repo dashboard page to refresh page 2014-02-17 20:33:58 -07:00
Brad Rydzewski
cda6cef5ec fixed template issue with install screen, not using correct base 2014-02-17 12:40:03 -07:00
Brad Rydzewski
d14b465ab6 Merge pull request #88 from notandy/master
Make smtp authentication optional
2014-02-16 13:54:16 -08:00
Andrew Karpow
d18fc8fc35 make smtp-auth optional 2014-02-16 22:36:01 +01:00
Brad Rydzewski
4648ca9669 Merge pull request #87 from pythonandchips/master
Add form tag to make install work.
2014-02-16 10:33:55 -08:00
Colin Gemmell
5d9d367b78 Add form tag to make install work.
There seems to be no javascript to post this form and no form tag to make the form work so added one
2014-02-16 17:40:23 +00:00
Vsevolod Strukchinsky
1505175288 Migration file based on #83
I choosed Rev3, because Rev2 will be about "open invitations" feature.
2014-02-16 11:57:16 +06:00
Vsevolod Strukchinsky
407faca612 Fixed another github client instance in code 2014-02-16 11:45:15 +06:00
Vsevolod Strukchinsky
b113b2ac33 Make IsGit check less strict 2014-02-16 11:45:15 +06:00
Vsevolod Strukchinsky
87cc740e8a Fixed identation 2014-02-16 11:45:15 +06:00
Vsevolod Strukchinsky
833563763c Added settings to github_add page (fix redirect) 2014-02-16 11:45:15 +06:00
Vsevolod Strukchinsky
44d5f3baca Update all github clients in code 2014-02-16 11:45:15 +06:00
Vsevolod Strukchinsky
425cbbc324 Use custom github domain for webhook 2014-02-16 11:45:14 +06:00
Vsevolod Strukchinsky
6c9ff00f99 Put values from settings into handler/auth.go 2014-02-16 11:45:14 +06:00
Vsevolod Strukchinsky
7208d95a76 Added GitHubApiUrl and GitHubDomain to settings and template 2014-02-16 11:45:14 +06:00
Brad Rydzewski
423abdf17d Merge pull request #33 from phusion/master
Fix HTML closing errors
2014-02-15 18:14:32 -08:00
Brad Rydzewski
43e5164426 make run now puts db in pwd, not /tmp. got sick of starting from scratch 2014-02-15 18:57:34 -07:00
Brad Rydzewski
4b412d3a26 added code to prevent panic if /login is reached but no settings exist
minor styling. added success and fail message to top of /signup screen
modified open_registration to boolean value in database
2014-02-15 18:56:48 -07:00
Brad Rydzewski
a699e6ef09 Merge remote-tracking branch 'origin/master' 2014-02-15 18:23:32 -07:00
Brad Rydzewski
828cb84c6d Merge pull request #67 from floatdrop/open-invitations
Open invitation setting
2014-02-15 17:22:54 -08:00
Brad Rydzewski
bf12de8540 Merge remote-tracking branch 'origin/master' 2014-02-15 17:18:01 -07:00
Nurahmadie
4ef0f1b437 Integrate migrations with drone.
Also add migration to tests.
2014-02-16 03:47:30 +07:00
Brad Rydzewski
9eab0c9dbf Merge pull request #82 from PatrickYevsukov/patch-1
Fix Typo
2014-02-15 11:37:55 -08:00
Nurahmadie
da8d4346ee Add tests to migrate existing database without migration attributes. 2014-02-16 02:23:26 +07:00
Nurahmadie
8ce87f0d2c More tests for alter columns migration
Also change the way we handle columns rename migration.
SQLite restrict column addition not to have PRIMARY KEY and/or
UNIQUE attribute, so we have to change from:

add new column -> migrate data from old column to new column ->
rename old table -> create new table with old columns removed ->
migrate data from old table to the new table -> drop old table

to directly:
rename old table -> create new table with renamed columns ->
migrate data from old table to the new table -> drop old table
2014-02-16 00:56:17 +07:00
Nurahmadie
4465b2654d Fix migration step not checked against current version.
Add tests for DropColumns.
2014-02-15 22:17:22 +07:00
Nurahmadie
54a9544044 Integrate MigrationDriver to migrate.go 2014-02-15 20:16:54 +07:00
Nurahmadie
d2eed594ea Migration Driver for SQLite
Need more tests.
2014-02-15 19:29:53 +07:00
Vsevolod Strukchinsky
460ec90049 Fixup behavior on uninstalled state 2014-02-15 18:17:29 +06:00
Patrick Yevsukov
59801aefdb Fix Typo 2014-02-14 20:23:58 -05:00
Brad Rydzewski
26c9fb0cc3 fix for #70 to prevent caching build images 2014-02-14 13:24:12 -07:00
Brad Rydzewski
3e89767952 Merge pull request #72 from schvin/minor-typo
minor typo
2014-02-14 10:38:29 -08:00
Brad Rydzewski
46182694c6 Merge pull request #78 from yosssi/godoc
Added the GoDoc link to README.md.
2014-02-14 10:37:46 -08:00
Brad Rydzewski
1593b1ee8d Merge pull request #79 from yosssi/services
Updated README.md to show all services.
2014-02-14 10:36:50 -08:00
yosssi
bc5c508bc2 Updated README.md to show all services.
Update pkg/build/images.go to use the latest version of CouchDB if
`couchdb` was set to `services`.
2014-02-14 09:37:43 +00:00
yosssi
54aa8a6df7 Added the GoDoc link to README.md. 2014-02-14 07:40:29 +00:00