import { Migration } from "@mikro-orm/migrations";
class Migration20260601120000 extends Migration {
  up() {
    this.addSql(`alter table "users" add column if not exists "updated_at" timestamptz null;`);
    this.addSql(`update "users" set "updated_at" = "created_at" where "updated_at" is null;`);
    this.addSql(`alter table "roles" add column if not exists "updated_at" timestamptz null;`);
    this.addSql(`update "roles" set "updated_at" = "created_at" where "updated_at" is null;`);
  }
  down() {
    this.addSql(`alter table "users" drop column if exists "updated_at";`);
    this.addSql(`alter table "roles" drop column if exists "updated_at";`);
  }
}
export {
  Migration20260601120000
};
//# sourceMappingURL=Migration20260601120000.js.map
