cleanup(server/marketplace): General cleanup of marketplace

Tweaked SQL tables to reference 'marketplace' and not 'sellout'

Removed if/else in favor of if/return
This commit is contained in:
Taso authored and Taso committed 2021-03-16 16:24:27 -04:00
1 parent 23ef9b8cd6
commit 3031e650e3
2 files changed
+18 -28

No files matched your search

+2 -11
View File
@@ -63,7 +63,7 @@ CREATE TABLE IF NOT EXISTS npwd_notes (
PRIMARY KEY (id)
);
CREATE TABLE IF NOT EXISTS npwd_sellout_listings (
CREATE TABLE IF NOT EXISTS npwd_marketplace_listings (
id int(11) NOT NULL AUTO_INCREMENT,
identifier varchar(255) DEFAULT NULL,
username varchar(255) DEFAULT NULL,
@@ -75,12 +75,6 @@ CREATE TABLE IF NOT EXISTS npwd_sellout_listings (
createdAt timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
updatedAt timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (id)
)
ENGINE = INNODB,
AUTO_INCREMENT = 31,
AVG_ROW_LENGTH = 2048,
CHARACTER SET utf8mb4,
COLLATE utf8mb4_general_ci;
);
CREATE TABLE IF NOT EXISTS npwd_marketplace_reports (
@@ -88,10 +82,7 @@ CREATE TABLE IF NOT EXISTS npwd_marketplace_reports (
listing_id int(11) DEFAULT NULL,
profile varchar(255) DEFAULT NULL,
PRIMARY KEY (id)
)
ENGINE = INNODB,
CHARACTER SET utf8mb4,
COLLATE utf8mb4_general_ci;
);
CREATE TABLE IF NOT EXISTS `npwd_twitter_reports` (
`id` int NOT NULL AUTO_INCREMENT,