mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-21 23:21:26 +01:00
Create shcema migration table in DB container
The migrate tool will try to create table schema_migration upon opening the connection to DB. This will cause error when there are multiple instance of adminserver trying to access the migrator upon start. This commit move the creation of the table during the initialization of the DB container. Signed-off-by: Daniel Jiang <jiangd@vmware.com>
This commit is contained in:
parent
05e5105c46
commit
c8cb2f8481
@ -1,2 +1,4 @@
|
||||
CREATE DATABASE registry ENCODING 'UTF8';
|
||||
\c registry;
|
||||
|
||||
CREATE TABLE schema_migrations(version bigint not null primary key, dirty boolean not null);
|
Loading…
Reference in New Issue
Block a user