Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
S
SwissSystemAPI
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Administrator
  • SwissSystemAPI
  • Repository

Switch branch/tag
  • swisssystemapi
  • migrations
  • 0001_initial_schema.sql
Find file
BlameHistoryPermalink
  • Mahmoud Aglan's avatar
    Add auto-migration on startup with idempotent schema · e46b1a95
    Mahmoud Aglan authored May 24, 2026
    - Migrator creates _migrations table, tracks executed files by name
    - Skips already-run migrations on subsequent deploys
    - Schema SQL uses IF NOT EXISTS, DO/EXCEPTION blocks, DROP POLICY IF EXISTS
    - Runs before server starts, exits on failure
    Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
    e46b1a95
0001_initial_schema.sql 20.1 KB
EditWeb IDE

Replace 0001_initial_schema.sql

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.