Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(schemas): import generateStandardId from correct source #5920

Merged
merged 1 commit into from
May 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ConsoleLog, generateStandardId } from '@logto/shared';
import { generateStandardId } from '@logto/shared/universal';
import { yes } from '@silverhand/essentials';
import { sql } from '@silverhand/slonik';

Expand All @@ -18,16 +18,14 @@ enum PredefinedScope {
All = 'all',
}

const consoleLog = new ConsoleLog();

/**
* This script is to create a pre-configured Management API M2M role for new users.
* This script is **only for CI**, since we won't create this role for existing users, so this script is not applicable for existing db data.
*/
const alteration: AlterationScript = {
up: async (pool) => {
if (!isCi) {
consoleLog.info(
console.info(
"Skipping the alteration script `next-1716291265-create-pre-configured-m-api-role.ts` since it's should not be applied to existing db data."
);
return;
Expand Down Expand Up @@ -73,7 +71,7 @@ const alteration: AlterationScript = {
},
down: async (pool) => {
if (!isCi) {
consoleLog.info(
console.info(
"Skipping the down script `next-1716291265-create-pre-configured-m-api-role.ts` since it's should not be applied to production db."
);
return;
Expand Down
Loading