diff --git a/definitions/migrations/1.3.21/database.sql b/definitions/migrations/1.3.21/database.sql deleted file mode 100644 index c3016123..00000000 --- a/definitions/migrations/1.3.21/database.sql +++ /dev/null @@ -1 +0,0 @@ -UPDATE dbinfo SET "value" = '1.3.21' WHERE name = 'version'; diff --git a/definitions/migrations/1.3.22/database.sql b/definitions/migrations/1.3.22/database.sql deleted file mode 100644 index 7a1d70b8..00000000 --- a/definitions/migrations/1.3.22/database.sql +++ /dev/null @@ -1 +0,0 @@ -UPDATE dbinfo SET "value" = '1.3.22' WHERE name = 'version'; diff --git a/definitions/migrations/1.3.21/atomicmarket.sql b/definitions/migrations/1.3.23/atomicmarket.sql similarity index 100% rename from definitions/migrations/1.3.21/atomicmarket.sql rename to definitions/migrations/1.3.23/atomicmarket.sql diff --git a/definitions/migrations/1.3.23/database.sql b/definitions/migrations/1.3.23/database.sql new file mode 100644 index 00000000..3768f154 --- /dev/null +++ b/definitions/migrations/1.3.23/database.sql @@ -0,0 +1 @@ +UPDATE dbinfo SET "value" = '1.3.23' WHERE name = 'version'; diff --git a/definitions/migrations/1.3.24/atomicmarket.sql b/definitions/migrations/1.3.24/atomicmarket.sql new file mode 100644 index 00000000..c549f328 --- /dev/null +++ b/definitions/migrations/1.3.24/atomicmarket.sql @@ -0,0 +1,18 @@ +DROP VIEW atomicmarket_sales_master; +DROP VIEW atomicmarket_auctions_master; +DROP VIEW atomicmarket_buyoffers_master; +DROP VIEW atomicmarket_template_buyoffers_master; + +ALTER TABLE atomicmarket_marketplaces ALTER COLUMN marketplace_name TYPE CHARACTER VARYING(13); +ALTER TABLE atomicmarket_sales ALTER COLUMN maker_marketplace TYPE CHARACTER VARYING(13); +ALTER TABLE atomicmarket_sales ALTER COLUMN taker_marketplace TYPE CHARACTER VARYING(13); +ALTER TABLE atomicmarket_sales_filters ALTER COLUMN maker_marketplace TYPE CHARACTER VARYING(13); +ALTER TABLE atomicmarket_sales_filters ALTER COLUMN taker_marketplace TYPE CHARACTER VARYING(13); +ALTER TABLE atomicmarket_auctions ALTER COLUMN maker_marketplace TYPE CHARACTER VARYING(13); +ALTER TABLE atomicmarket_auctions ALTER COLUMN taker_marketplace TYPE CHARACTER VARYING(13); +ALTER TABLE atomicmarket_buyoffers ALTER COLUMN maker_marketplace TYPE CHARACTER VARYING(13); +ALTER TABLE atomicmarket_buyoffers ALTER COLUMN taker_marketplace TYPE CHARACTER VARYING(13); +ALTER TABLE atomicmarket_template_buyoffers ALTER COLUMN maker_marketplace TYPE CHARACTER VARYING(13); +ALTER TABLE atomicmarket_template_buyoffers ALTER COLUMN taker_marketplace TYPE CHARACTER VARYING(13); +ALTER TABLE atomicmarket_stats_markets ALTER COLUMN maker_marketplace TYPE CHARACTER VARYING(13); +ALTER TABLE atomicmarket_stats_markets ALTER COLUMN taker_marketplace TYPE CHARACTER VARYING(13); diff --git a/definitions/migrations/1.3.24/database.sql b/definitions/migrations/1.3.24/database.sql new file mode 100644 index 00000000..734355e0 --- /dev/null +++ b/definitions/migrations/1.3.24/database.sql @@ -0,0 +1 @@ +UPDATE dbinfo SET "value" = '1.3.24' WHERE name = 'version'; diff --git a/package.json b/package.json index c2ea6666..639b6ccc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eosio-contract-api", - "version": "1.3.22", + "version": "1.3.24", "description": "EOSIO Contract API", "author": "pink.gg", "license": "AGPL-3.0", diff --git a/src/filler/handlers/atomicmarket/index.ts b/src/filler/handlers/atomicmarket/index.ts index 3e2d272b..d46d4f91 100644 --- a/src/filler/handlers/atomicmarket/index.ts +++ b/src/filler/handlers/atomicmarket/index.ts @@ -148,13 +148,17 @@ export default class AtomicMarketHandler extends ContractHandler { await client.query(fs.readFileSync('./definitions/views/atomicmarket_sales_master.sql', {encoding: 'utf8'})); } - if (version === '1.3.21') { + if (version === '1.3.23') { await client.query(fs.readFileSync('./definitions/views/atomicmarket_template_buyoffers_master.sql', {encoding: 'utf8'})); await client.query(fs.readFileSync('./definitions/procedures/atomicmarket_template_buyoffer_mints.sql', {encoding: 'utf8'})); + await client.query(fs.readFileSync('./definitions/views/atomicmarket_assets_master.sql', {encoding: 'utf8'})); } - if (version === '1.3.22') { - await client.query(fs.readFileSync('./definitions/views/atomicmarket_assets_master.sql', {encoding: 'utf8'})); + if (version === '1.3.24') { + await client.query(fs.readFileSync('./definitions/views/atomicmarket_auctions_master.sql', {encoding: 'utf8'})); + await client.query(fs.readFileSync('./definitions/views/atomicmarket_buyoffers_master.sql', {encoding: 'utf8'})); + await client.query(fs.readFileSync('./definitions/views/atomicmarket_template_buyoffers_master.sql', {encoding: 'utf8'})); + await client.query(fs.readFileSync('./definitions/views/atomicmarket_sales_master.sql', {encoding: 'utf8'})); } }