-
Notifications
You must be signed in to change notification settings - Fork 45
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 #165 from namecheap/feature/initProps_removal
Feature/init props removal
- Loading branch information
Showing
13 changed files
with
47 additions
and
33 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
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
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
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
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
16 changes: 16 additions & 0 deletions
16
registry/server/migrations/20200518134531_apps_initProps_removal.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 * as Knex from "knex"; | ||
|
||
|
||
export async function up(knex: Knex): Promise<any> { | ||
return knex.schema.table('apps', function (table) { | ||
table.dropColumn('initProps'); | ||
}) | ||
} | ||
|
||
|
||
export async function down(knex: Knex): Promise<any> { | ||
return knex.schema.createTable('apps', table => { | ||
table.json('initProps'); | ||
}); | ||
} | ||
|
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 |
---|---|---|
|
@@ -15,7 +15,6 @@ export async function seed(knex: Knex): Promise<any> { | |
src: 'http://localhost:8235/', | ||
timeout: 1000, | ||
}), | ||
initProps: '{}', | ||
props: '{}', | ||
kind: 'essential', | ||
}, { | ||
|
@@ -27,7 +26,6 @@ export async function seed(knex: Knex): Promise<any> { | |
rxjs: 'https://unpkg.com/[email protected]/bundles/rxjs.umd.js', | ||
'@portal/fetchWithCache': `http://${publicHost}:8238/fetchWithCache.js`, | ||
}), | ||
initProps: '{}', | ||
props: JSON.stringify({ | ||
publicPath: `http://${publicHost}:8236/` | ||
}), | ||
|
@@ -38,7 +36,6 @@ export async function seed(knex: Knex): Promise<any> { | |
dependencies: JSON.stringify({ | ||
'@portal/fetchWithCache': `http://${publicHost}:8238/fetchWithCache.js`, | ||
}), | ||
initProps: '{}', | ||
props: '{}', | ||
kind: 'primary', | ||
}, { | ||
|
@@ -51,9 +48,6 @@ export async function seed(knex: Knex): Promise<any> { | |
}), | ||
assetsDiscoveryUrl: 'http://127.0.0.1:8239/_spa/dev/assets-discovery', | ||
dependencies: '{}', | ||
initProps: JSON.stringify({ | ||
publicPath: `http://${publicHost}:8239/dist/` | ||
}), | ||
props: JSON.stringify({ | ||
publicPath: `http://${publicHost}:8239/dist/` | ||
}), | ||
|
@@ -66,14 +60,12 @@ export async function seed(knex: Knex): Promise<any> { | |
timeout: 1000, | ||
}), | ||
dependencies: '{}', | ||
initProps: '{}', | ||
props: '{}', | ||
kind: 'primary', | ||
}, { | ||
name: '@portal/fetchWithCache', | ||
spaBundle: `http://${publicHost}:8238/fetchWithCache.js`, | ||
dependencies: '{}', | ||
initProps: '{}', | ||
props: '{}', | ||
kind: 'essential', | ||
}, | ||
|
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