Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate database schema to modern types and improve string handling #37

Merged
merged 2 commits into from
Nov 19, 2024

Commits on Nov 19, 2024

  1. Migrate legacy ntext/text columns to use varchar.

    Note that with newer MSSQL collation they're deprecated and in future
    SQL versions will be fully removed.
    
    Also I updated the layout of K_NPCPOS to match how it is officially and
    with the N3ME and server files loading order.
    stevewgr committed Nov 19, 2024
    Configuration menu
    Copy the full SHA
    5821e78 View commit details
    Browse the repository at this point in the history
  2. Migrate all columns from CHAR to VARCHAR datatype.

    CHAR columns caused inconsistencies due to fixed length and padded
    whitespaces, leading to inefficient IO and server operations. VARCHAR
    handles variable-length strings more compactly, saving space and improving
    performance for our use case. This migration resolves misuse and optimizes
    storage and processing efficiency.
    stevewgr committed Nov 19, 2024
    Configuration menu
    Copy the full SHA
    6e9f29c View commit details
    Browse the repository at this point in the history