0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-03-17 22:31:28 -05:00

chore: add comments for cloud seed data (#5583)

This commit is contained in:
Gao Sun 2024-03-28 23:18:59 +08:00 committed by GitHub
parent dcb5eba305
commit a279fb4c6c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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');
};