2021-09-30 14:26:17 -07:00
|
|
|
/**
|
|
|
|
* Script for cleaning up the schema for PostgreSQL used for the AccountsDb plugin.
|
|
|
|
*/
|
|
|
|
|
2021-10-30 20:18:11 -07:00
|
|
|
DROP TRIGGER account_update_trigger ON account;
|
2021-09-30 14:26:17 -07:00
|
|
|
DROP FUNCTION audit_account_update;
|
|
|
|
DROP TABLE account_audit;
|
2021-10-08 20:06:58 -07:00
|
|
|
DROP TABLE account;
|
|
|
|
DROP TABLE slot;
|
2021-12-01 09:23:26 -08:00
|
|
|
DROP TABLE transaction;
|
2021-12-29 15:12:01 -08:00
|
|
|
DROP TABLE block;
|
2021-12-01 09:23:26 -08:00
|
|
|
|
|
|
|
DROP TYPE "TransactionError" CASCADE;
|
|
|
|
DROP TYPE "TransactionErrorCode" CASCADE;
|
2021-12-10 08:04:04 -08:00
|
|
|
DROP TYPE "LoadedMessageV0" CASCADE;
|
|
|
|
DROP TYPE "LoadedAddresses" CASCADE;
|
2021-12-01 09:23:26 -08:00
|
|
|
DROP TYPE "TransactionMessageV0" CASCADE;
|
|
|
|
DROP TYPE "TransactionMessage" CASCADE;
|
|
|
|
DROP TYPE "TransactionMessageHeader" CASCADE;
|
2021-12-10 08:04:04 -08:00
|
|
|
DROP TYPE "TransactionMessageAddressTableLookup" CASCADE;
|
2021-12-01 09:23:26 -08:00
|
|
|
DROP TYPE "TransactionStatusMeta" CASCADE;
|
|
|
|
DROP TYPE "RewardType" CASCADE;
|
|
|
|
DROP TYPE "Reward" CASCADE;
|
|
|
|
DROP TYPE "TransactionTokenBalance" CASCADE;
|
|
|
|
DROP TYPE "InnerInstructions" CASCADE;
|
|
|
|
DROP TYPE "CompiledInstruction" CASCADE;
|