mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-07 21:28:21 +00:00
Revert "Implement wasmer init and wasmer publish"
This commit is contained in:
@@ -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)
|
||||
);
|
||||
@@ -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)
|
||||
);
|
||||
@@ -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;
|
||||
Reference in New Issue
Block a user