sql.migration.V20151027223908__AddCreatedAtToDialogs.sql Maven / Gradle / Ivy
The newest version!
ALTER TABLE dialogs ADD COLUMN created_at TIMESTAMP NOT NULL DEFAULT NOW();
CREATE INDEX ON dialogs(user_id, created_at);
ALTER TABLE dialogs ADD COLUMN created_at TIMESTAMP NOT NULL DEFAULT NOW();
CREATE INDEX ON dialogs(user_id, created_at);