-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1706 from gettakaro/main-promotion
- Loading branch information
Showing
9 changed files
with
27 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* Takaro app-api | ||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | ||
* | ||
* The version of the OpenAPI document: development - 79d1da12fecd3c58d8d51f65aa8e58e2473d1694 | ||
* The version of the OpenAPI document: development - 89afe913b9508ea5a7464ac1d009d207112df754 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
@@ -7944,7 +7944,7 @@ export interface ShopListingCreateDTO { | |
* @type {string} | ||
* @memberof ShopListingCreateDTO | ||
*/ | ||
name?: string; | ||
name: string; | ||
/** | ||
* | ||
* @type {boolean} | ||
|
@@ -8074,7 +8074,7 @@ export interface ShopListingOutputDTO { | |
* @type {string} | ||
* @memberof ShopListingOutputDTO | ||
*/ | ||
name?: string; | ||
name: string; | ||
/** | ||
* | ||
* @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* Takaro app-api | ||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | ||
* | ||
* The version of the OpenAPI document: development - 79d1da12fecd3c58d8d51f65aa8e58e2473d1694 | ||
* The version of the OpenAPI document: development - 89afe913b9508ea5a7464ac1d009d207112df754 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* Takaro app-api | ||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | ||
* | ||
* The version of the OpenAPI document: development - 79d1da12fecd3c58d8d51f65aa8e58e2473d1694 | ||
* The version of the OpenAPI document: development - 89afe913b9508ea5a7464ac1d009d207112df754 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* Takaro app-api | ||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | ||
* | ||
* The version of the OpenAPI document: development - 79d1da12fecd3c58d8d51f65aa8e58e2473d1694 | ||
* The version of the OpenAPI document: development - 89afe913b9508ea5a7464ac1d009d207112df754 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* Takaro app-api | ||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | ||
* | ||
* The version of the OpenAPI document: development - 79d1da12fecd3c58d8d51f65aa8e58e2473d1694 | ||
* The version of the OpenAPI document: development - 89afe913b9508ea5a7464ac1d009d207112df754 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
16 changes: 16 additions & 0 deletions
16
packages/lib-db/src/migrations/sql/20241020133133-make-listing-name-required.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { Knex } from 'knex'; | ||
|
||
export async function up(knex: Knex): Promise<void> { | ||
// Set all listings w/o name to 'Unnamed' | ||
await knex('shopListing').whereNull('name').update({ name: 'Unnamed' }); | ||
|
||
await knex.schema.alterTable('shopListing', (table) => { | ||
table.string('name').notNullable().alter(); | ||
}); | ||
} | ||
|
||
export async function down(knex: Knex): Promise<void> { | ||
await knex.schema.alterTable('shopListing', (table) => { | ||
table.string('name').nullable().alter(); | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters