diff --git a/Deploy/db/registry.sql b/Deploy/db/registry.sql index 66bb219e6..e5f13f7d4 100644 --- a/Deploy/db/registry.sql +++ b/Deploy/db/registry.sql @@ -143,7 +143,8 @@ create table replication_job ( tags varchar(16384), creation_time timestamp default CURRENT_TIMESTAMP, update_time timestamp default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, - PRIMARY KEY (id) + PRIMARY KEY (id), + INDEX policy (policy_id) ); create table properties ( @@ -152,11 +153,8 @@ create table properties ( primary key (k) ); -insert into properties (k, v) values -('schema_version', '0.1.1'); - CREATE TABLE IF NOT EXISTS `alembic_version` ( `version_num` varchar(32) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -insert into alembic_version values ('0.2.0'); +insert into alembic_version values ('0.3.0'); diff --git a/migration/db_meta.py b/migration/db_meta.py index fecb2aed3..af8f444b0 100644 --- a/migration/db_meta.py +++ b/migration/db_meta.py @@ -124,3 +124,4 @@ class ReplicationJob(Base): creation_time = sa.Column(mysql.TIMESTAMP, server_default = sa.text("CURRENT_TIMESTAMP")) update_time = sa.Column(mysql.TIMESTAMP, server_default = sa.text("CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP")) + __table_args__ = (sa.Index('policy', "policy_id"),) diff --git a/migration/migration_harbor/versions/0_2_0.py b/migration/migration_harbor/versions/0_3_0.py similarity index 97% rename from migration/migration_harbor/versions/0_2_0.py rename to migration/migration_harbor/versions/0_3_0.py index 77a31ef34..b0164e829 100644 --- a/migration/migration_harbor/versions/0_2_0.py +++ b/migration/migration_harbor/versions/0_3_0.py @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -"""0.1.1 to 0.2.0 +"""0.1.1 to 0.3.0 Revision ID: 0.1.1 Revises: @@ -20,7 +20,7 @@ Revises: """ # revision identifiers, used by Alembic. -revision = '0.2.0' +revision = '0.3.0' down_revision = '0.1.1' branch_labels = None depends_on = None diff --git a/views/change-password.htm b/views/change-password.htm index 62267f08d..7753347e5 100644 --- a/views/change-password.htm +++ b/views/change-password.htm @@ -11,7 +11,7 @@
// 'forgot_password_description' | tr //