Skip to content

Commands

These commands are available to be call.

Server

listsqls

Lists all SQL files found in the console.

Example: listsqls

migratesql

Runs all found SQLs and stores file path and hash in database so we don't run them twice.

Example: migratesql

This is also automatically run on starting the script.

addmigrate

Adds given SQL path to migration table without running the SQL.

Example: addmigrate C:\fivem-server\txData\resources\some-resource\install.sql true

Arguments

Argument Required Description
FilePath True The file path of the SQL.
OverwriteHash False Pass true if you want to overwrite the hash in the database.

addAllCurrent

Does the same as addmigrate but with all found files.

Example: addAllCurrent true

Arguments

Argument Required Description
OverwriteHash False Pass true if you want to overwrite the hash in the database.