mirror of https://github.com/agola-io/agola
8423c7082e
* Remove query tables. Use a standard sql approach storing all possible fields as columns. * Some fields that are complex (like runtasks) are saved as json. * For postgres use native sequences. For sqlite3 emulate them with a sequence table. * Add sqlg package that provides code generators, db, lock and a db manager for setup/migration. * Future migrations could be done with the new migration logic and won't require a conversion from an export but will be done directly on the database. * Added migration command to migrate from an export of the db schema available in master (at commit |
||
---|---|---|
.. | ||
local.go | ||
lock.go | ||
postgres.go |