<?php
require_once __DIR__ . '/../../db/config.php';

try {
    $pdo = db();
    $sql = "ALTER TABLE roles ADD COLUMN display_order INT NOT NULL DEFAULT 0";
    $pdo->exec($sql);
    echo "Migration 012_add_display_order_to_roles executed successfully." . PHP_EOL;
} catch (PDOException $e) {
    echo "Error executing migration 012_add_display_order_to_roles: " . $e->getMessage() . PHP_EOL;
    exit(1);
}
