All Downloads are FREE. Search and download functionalities are using the official Maven repository.

hal-feed-consumer-mysql-db-migration.V1__create_initial_table.sql Maven / Gradle / Ivy

CREATE TABLE ${feed.tracker.table}
(
  id VARCHAR(128) NOT NULL,
  status VARCHAR(128) NOT NULL,
  seen_at DATETIME NOT NULL,
  consuming DATETIME,
  consumed DATETIME,
  failures_count INTEGER DEFAULT 0,
  aborted DATETIME,
  PRIMARY KEY (id)
);

CREATE INDEX ${feed.tracker.table}_status_idx ON ${feed.tracker.table} (status);
CREATE INDEX ${feed.tracker.table}_seen_idx ON ${feed.tracker.table} (seen_at);
CREATE INDEX ${feed.tracker.table}_consuming_idx ON ${feed.tracker.table} (consuming);
CREATE INDEX ${feed.tracker.table}_consumed_idx ON ${feed.tracker.table} (consumed);
CREATE INDEX ${feed.tracker.table}_aborted_idx ON ${feed.tracker.table} (aborted);




© 2015 - 2024 Weber Informatics LLC | Privacy Policy