1.8 KiB
1.8 KiB
Current Local Database (SQLite)
This describes what exists right now in the rebuild app (app/database/database.sqlite).
Local DB engine
- SQLite (file:
app/database/database.sqlite)
Tables present
Framework defaults:
cachecache_locksfailed_jobsjob_batchesjobsmigrationspassword_reset_tokenssessionsusers
Dewemoji core tables:
licenseslicense_activationsusage_logs
Current row counts (local)
emojis: 2131emoji_keywords: 13420emoji_aliases: 0emoji_shortcodes: 0licenses: 7license_activations: 1usage_logs: 88ai_guard_logs: 54ai_judgments: 0ai_lang_cache: 6ai_provider_usage: 4legacy_users: 0legacy_sessions: 0
What is not in local DB yet (from live SQL)
From dewemoji-live-backend/dewemojiAPI_DB.sql, these tables exist in live but are still empty locally:
emoji_aliasesemoji_shortcodesai_judgmentslegacy_users(live users)legacy_sessions(live sessions)
Why emojis still work locally
The rebuild app currently reads emojis from a JSON dataset (not DB):
app/data/emojis.json
That’s why the UI works even though emoji tables aren’t present yet.
Next step (if you want to migrate live SQL)
Migrations + importer are now in place. To sync everything locally (SQLite), run:
cd /Users/dwindown/Developments/dewemoji/app
php artisan migrate
php artisan dewemoji:import-live-sql /Users/dwindown/Developments/dewemoji-live-backend/dewemojiAPI_DB.sql --truncate
Notes:
- Live
users+sessionsgo intolegacy_users+legacy_sessions(so Laravel auth/session tables stay safe). - Licenses/activations/usage_logs are mapped into the current tables for parity.
Just tell me which subset to migrate first.