.oss.akka-tools.akka-tools-jdbc-journal_2.12.2.5.0.2.source-code.akka-tools-jdbc-journal-liquibase-mysql.sql Maven / Gradle / Ivy
The newest version!
--changeset mokj:Create-akka-tools-jdbc-journal-tables dbms:all
CREATE TABLE t_journal (
typePath VARCHAR(255),
id VARCHAR(255),
sequenceNr INT,
journalIndex INT AUTO_INCREMENT,
persistentRepr BLOB,
payload_write_only CLOB,
updated TIMESTAMP,
PRIMARY KEY(typePath, id, sequenceNr)
);
-- Create index to make it fast to query using only typePath and s_journal_global_seq
CREATE UNIQUE INDEX IX_journalIndex ON t_journal(typePath, journalIndex);
CREATE TABLE t_snapshot (
persistenceId VARCHAR(255),
sequenceNr INT,
timestamp NUMERIC,
snapshot BLOB,
snapshotClassname VARCHAR(255),
updated TIMESTAMP,
serializerId INT,
PRIMARY KEY(persistenceId, sequenceNr, timestamp)
);
CREATE TABLE t_cluster_nodes (
nodeName VARCHAR(255),
lastSeen TIMESTAMP,
joined INT,
PRIMARY KEY(nodeName)
);