@dmgincs/discord-entities
v1.1.6
Published
Damage Inc Discord database entities
Downloads
45
Readme
DamageInc Discord-Entities
DamageInc Discord Database Entities repository
Installation
Install the package in your project directory with:
// with yarn
yarn add @dmgincs/discord-entities
Migrations
The discord database is managed from this package. Therefore, migrations will have to be created here. Migrations may be ran on the testing server, but the production migrations will automatically be ran upon deployment.
You can run all of these commands in the packages/entities
folder.
// Generate a migration based on current database state
$ yarn migration:generate ./src/migrations/<Name>
// Create an empty migration
$ yarn migration:create ./src/migrations/<Name>
// Run the migrations
$ yarn migration:run
// Revert the last migration
$ yarn migration:revert