Skip to content

Commit

Permalink
[Issue comixed#27] Add migration to pad existing page hash values.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcpierce committed Dec 7, 2019
1 parent 4609821 commit f27dd4b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>

<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.1.xsd">

<changeSet id="007_issue-27_pad_page_hash_values.xml"
author="mcpierce">
<sql>
UPDATE pages SET hash = LPAD(hash,32,'0');
</sql>
</changeSet>
</databaseChangeLog>
Expand Up @@ -12,4 +12,5 @@
<include file="/db/migrations/0.5.0/004_issue-578_rename_order_to_sequence.xml"/>
<include file="/db/migrations/0.5.0/005_create_bookmarks_table.xml"/>
<include file="/db/migrations/0.5.0/006_issue-72_create_smartlists_table.xml"/>
<include file="/db/migrations/0.5.0/007_issue-27_pad_page_hash_values.xml"/>
</databaseChangeLog>

0 comments on commit f27dd4b

Please sign in to comment.