# Commands

## Migrate Renewed Banking Accounts

Used to migrate accounts from Renewed Banking (`bank_accounts_new`) to TGG Banking (`tgg_banking_accounts`). (Admin only)

**Account Type Mapping:**

* Society accounts (`creator IS NULL`) → Migrated as **Business** accounts
* Player accounts (`creator IS NOT NULL`) → Migrated as **Shared** accounts

Usage:

`/MigrateRenewedBankingAccounts [clearRenewedBankingTable]`

**Parameters:**

* `clearRenewedBankingTable` (optional): Set to `YES` to delete migrated accounts from the old table after migration. Default: `NO`

**Examples:**

Migrate accounts without deleting from the old table:

```
/MigrateRenewedBankingAccounts
```

Migrate accounts and delete them from the old table:

```
/MigrateRenewedBankingAccounts YES
```

{% hint style="warning" %}
**Important:** Always backup your database before running the migration command, especially when using the `YES` option to clear the old table.
{% endhint %}
