Revert "Implement wasmer init and wasmer publish"

This commit is contained in:
Syrus Akbary
2022-12-16 14:09:55 -08:00
committed by GitHub
parent 7a90abfcc6
commit 250ebff4e8
44 changed files with 54 additions and 3791 deletions

View File

@@ -1,27 +0,0 @@
CREATE TABLE personal_keys
(
id integer primary key,
active integer not null,
public_key_id text not null UNIQUE,
public_key_value text not null UNIQUE,
private_key_location text UNIQUE,
key_type_identifier text not null,
date_added text not null
);
CREATE TABLE wapm_users
(
id integer primary key,
name text not null UNIQUE
);
CREATE TABLE wapm_public_keys
(
id integer primary key,
public_key_id text not null UNIQUE,
user_key integer not null,
public_key_value text not null UNIQUE,
key_type_identifier text not null,
date_added text not null,
FOREIGN KEY(user_key) REFERENCES wapm_users(id)
);

View File

@@ -1,9 +0,0 @@
CREATE TABLE wasm_contracts
(
id integer primary key,
contract_name text not null,
version text not null,
date_added text not null,
content text not null,
CONSTRAINT name_version_unique UNIQUE (contract_name, version)
);

View File

@@ -1,26 +0,0 @@
PRAGMA foreign_keys=off;
CREATE TABLE wasm_interfaces
(
id integer primary key,
interface_name text not null,
version text not null,
date_added text not null,
content text not null,
CONSTRAINT name_version_unique UNIQUE (interface_name, version)
);
INSERT INTO wasm_interfaces
(
id,
interface_name,
version,
date_added,
content
)
SELECT id, contract_name, version, date_added, content
FROM wasm_contracts;
DROP TABLE wasm_contracts;
PRAGMA foreign_keys=on;