He-Pin commented on code in PR #391: URL: https://github.com/apache/pekko-persistence-jdbc/pull/391#discussion_r2616137149
########## core/src/main/resources/schema/mariadb/mariadb-durable-state-migration.sql: ########## @@ -0,0 +1,30 @@ +-- SPDX-License-Identifier: Apache-2.0 + +-- see https://github.com/apache/pekko-persistence-jdbc/pull/365 + +-- Script is provided as an example only and only been partially tested. +-- Please review and test thoroughly before using in production and +-- ideally, in a test environment first. +-- Always back up your database before running migration scripts. + +CREATE TABLE IF NOT EXISTS durable_state +( + global_offset SERIAL, + persistence_id VARCHAR(255) NOT NULL, + revision BIGINT NOT NULL, + state_payload BLOB NOT NULL, + state_serial_id INTEGER NOT NULL, + state_serial_manifest VARCHAR(255), + tag VARCHAR(255), + state_timestamp BIGINT NOT NULL, + PRIMARY KEY (persistence_id) +); Review Comment: It would be nice if we could have some comments about this field mapping. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
