-- V2: Example Flyway migration.
-- Keep this small file to show template users how automatic migrations work.
-- Add future schema changes as V3__xxx.sql, V4__xxx.sql, ...

CREATE TABLE IF NOT EXISTS app_schema_version_note (
  `id` bigint NOT NULL AUTO_INCREMENT,
  `version` varchar(50) NOT NULL,
  `description` varchar(255) NOT NULL,
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `uk_app_schema_version_note_version` (`version`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='Flyway migration example note';

INSERT INTO app_schema_version_note (`version`, `description`)
VALUES ('V2', 'Example migration applied by Flyway automatically');
