Skip to content

Instantly share code, notes, and snippets.

@fedotxxl
Created February 10, 2023 20:53
Show Gist options
  • Save fedotxxl/4849bbba26c17101b16722375e3844c2 to your computer and use it in GitHub Desktop.
Save fedotxxl/4849bbba26c17101b16722375e3844c2 to your computer and use it in GitHub Desktop.
<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.5.xsd">
<changeSet id="20230213.f1.xml" author="fbelov">
<sql>
CREATE TABLE persistent_logins_with_history (
username VARCHAR(64) NOT NULL,
series VARCHAR(64) NOT NULL,
token VARCHAR(64) NOT NULL,
last_used TIMESTAMP NOT NULL);
</sql>
<addPrimaryKey tableName="persistent_logins_with_history" columnNames="series, token"/>
</changeSet>
</databaseChangeLog>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment