mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-18 14:47:38 +01:00
c8cb2f8481
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>
4 lines
148 B
SQL
4 lines
148 B
SQL
CREATE DATABASE registry ENCODING 'UTF8';
|
|
\c registry;
|
|
|
|
CREATE TABLE schema_migrations(version bigint not null primary key, dirty boolean not null); |