diff --git a/packages/cli/src/commands/database/seed/tables.ts b/packages/cli/src/commands/database/seed/tables.ts index 9ad254d78..de4dc07f8 100644 --- a/packages/cli/src/commands/database/seed/tables.ts +++ b/packages/cli/src/commands/database/seed/tables.ts @@ -191,11 +191,18 @@ export const seedTables = async ( ), connection.query(insertInto(createAdminTenantSignInExperience(), SignInExperiences.table)), connection.query(insertInto(createDefaultAdminConsoleApplication(), Applications.table)), - updateDatabaseTimestamp(connection, latestTimestamp), + ]); + + // The below seed data is for the Logto Cloud only. We put it here for the sack of simplicity. + // The data is not harmful for OSS, since they are all admin tenant data. OSS will not use them + // and they cannot be seen by the Console. + await Promise.all([ seedTenantOrganizations(connection), seedManagementApiProxyApplications(connection), ]); + await updateDatabaseTimestamp(connection, latestTimestamp); + consoleLog.succeed('Seed data'); };