Files
nym/nym-api/migrations/20220804120000_mixnet_contract_v2.sql
Dave Hrycyszyn f6a79ce7c3 Renaming validator-api to nym-api (#1863)
* Renaming validator-api to nym-api

* nym-api: simplified crate name

* Added nym-api rename to changelog

* Changed some output messages

* Renamed validator-api-requests to nym-api requests

* Removing more references to validator-api-requests

* Additional lockfile name changes after full build

* Removing mistakenly added merge files

* ibid

* ibid

* Getting rid of ref to validator_api deep inside validator-client

* Fixing file storage paths

* Renaming struct function names referring to validator_api

* Simplifying struct init

* Fixed up all other instances of nym_api.

* Renaming validatorApi to nymApi in TypeScript client for consistency

v

* Found a few more Rust instances

* Changed examples in TypeScript SDK

* Found one more instance of the use of validator instead of nym apis

* Aliasing config key name for deserialization to preserve compatibility with old configs
2022-12-14 15:05:01 +00:00

33 lines
773 B
SQL

/*
* Copyright 2022 - Nym Technologies SA <contact@nymtech.net>
* SPDX-License-Identifier: Apache-2.0
*/
ALTER TABLE mixnode_details
RENAME TO mixnode_details_old;
CREATE TABLE mixnode_details
(
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
mix_id INTEGER NOT NULL UNIQUE,
owner VARCHAR NOT NULL,
identity_key VARCHAR NOT NULL
);
CREATE INDEX `mixnode_mix_id_index` ON `mixnode_details` (`id`, `mix_id`);
-- we might have to "empty" more tables here
ALTER TABLE rewarding_report
RENAME TO rewarding_report_old;
ALTER TABLE interval_rewarding
RENAME TO interval_rewarding_deprecated_unused;
CREATE TABLE rewarding_report
(
absolute_epoch_id INTEGER NOT NULL,
eligible_mixnodes INTEGER NOT NULL
);