harbor/src/common/dao
Daniel Jiang c9b1962b1e Initialise Harbor DB schema in Harbor UI/adminserver container
This commit fixes #5040, the harbor-db image will only contain empty
databases, and harbor ui container will use migrate tool to run initial
SQL scripts to do initialization.  This is helpful for the case to
configure Harbor against external DB or DBaaS like RDS for HA deployment
However, this change will results some confusion as there are two tables
to track schema versions have been using alembic for migration, for this
release we'll try to use alembic to mock a `migration` table during
upgrade so the migrator will be bypassed, in future we'll consider to
consolidate to the golang based migrator.
Another issue is that the UI and adminserver containers will access DB
after start up in different congurations, can't ensure the sequence, so
both of them will try to update the schema when started up.
2018-06-28 16:22:53 +08:00
..
clair address comment 2017-07-12 15:05:27 +08:00
group Update security context for assign role to project group member 2018-05-03 16:49:16 +08:00
project Update security context for assign role to project group member 2018-05-03 16:49:16 +08:00
accesslog.go increase length of username in database to 256 2017-08-17 15:24:34 +08:00
base.go Initialise Harbor DB schema in Harbor UI/adminserver container 2018-06-28 16:22:53 +08:00
clair.go Print stack trace when recover from panic and print warning message rather than returning an error when updating 0 records 2017-12-14 13:48:45 +08:00
config_test.go Sync user email in ldap #3663 2017-12-26 18:53:32 +08:00
config.go Change codes to make everything OK after upgrading to beego 1.9.0 2018-02-05 13:07:52 +08:00
dao_test.go Update change password API 2018-05-22 19:02:20 +08:00
label_test.go Merge pull request #5070 from ywk253100/180601_label_fuzzy_match 2018-06-12 14:39:35 +08:00
label.go Merge pull request #5070 from ywk253100/180601_label_fuzzy_match 2018-06-12 14:39:35 +08:00
mysql.go Initialise Harbor DB schema in Harbor UI/adminserver container 2018-06-28 16:22:53 +08:00
pgsql.go Initialise Harbor DB schema in Harbor UI/adminserver container 2018-06-28 16:22:53 +08:00
pro_meta_test.go Apply project level policies to standalone Harbor 2017-10-19 17:33:28 +08:00
pro_meta.go Fully migrate harbor db to postgresql (#4689) 2018-04-27 02:27:12 -07:00
project_test.go Update security context for assign role to project group member 2018-05-03 16:49:16 +08:00
project.go Put user info into session (#4885) 2018-05-17 16:23:51 +08:00
register.go Fully migrate harbor db to postgresql (#4689) 2018-04-27 02:27:12 -07:00
replication_job.go Fully migrate harbor db to postgresql (#4689) 2018-04-27 02:27:12 -07:00
repository_test.go Implement filter repository and tags by label API 2018-03-21 10:51:06 +08:00
repository.go Fuzzy matching repository name in GET repositories API 2018-03-22 13:38:26 +08:00
resource_label_test.go Delete the mapping relationship between resources and labels when the label is deleted 2018-03-24 02:22:51 +08:00
resource_label.go Delete the mapping relationship between resources and labels when the label is deleted 2018-03-24 02:22:51 +08:00
role.go Fully migrate harbor db to postgresql (#4689) 2018-04-27 02:27:12 -07:00
scan_job.go fix golint and go vet issue 2018-03-26 22:10:01 +08:00
sqlite.go Initialise Harbor DB schema in Harbor UI/adminserver container 2018-06-28 16:22:53 +08:00
testutils.go Initialise Harbor DB schema in Harbor UI/adminserver container 2018-06-28 16:22:53 +08:00
user_test.go Fully migrate harbor db to postgresql (#4689) 2018-04-27 02:27:12 -07:00
user.go Update change password API 2018-05-22 19:02:20 +08:00
version_test.go Fail earlier when found database schema dismatch 2017-11-07 13:07:56 +08:00
version.go Add indexes to job tables and bump up schema version. 2018-03-28 16:15:54 +08:00
watch_item_test.go Implement immediate trigger and the methods of WatchList 2017-11-27 14:23:21 +08:00
watch_item.go Fully migrate harbor db to postgresql (#4689) 2018-04-27 02:27:12 -07:00