feat: Implement user authentication and database migration system
- Refactored AuthService to use UserRepository for user authentication. - Added .env file for environment configuration. - Created migration system with Migrator and ConnectionFactory classes. - Added database migration files for creating users table. - Implemented settings controller for managing database migrations. - Developed user repository for user data handling. - Created users controller for user management interface. - Added frontend standards and migration documentation. - Introduced reusable UI components and jQuery alerts module.
This commit is contained in:
19
DOCS/MIGRATIONS.md
Normal file
19
DOCS/MIGRATIONS.md
Normal file
@@ -0,0 +1,19 @@
|
||||
# Migracje bazy danych
|
||||
|
||||
## Zasada
|
||||
- Kazda zmiana schematu bazy to nowy plik `.sql` w `database/migrations`.
|
||||
- Pliki sa wykonywane rosnaco po nazwie.
|
||||
- Wykonane migracje sa zapisywane w tabeli `migrations`.
|
||||
|
||||
## Nazewnictwo plikow
|
||||
- Format: `YYYYMMDD_HHMMSS_opis.sql`
|
||||
- Przyklad: `20260221_000001_create_users_table.sql`
|
||||
|
||||
## Uruchamianie
|
||||
- CLI: `php bin/migrate.php` lub `composer migrate`
|
||||
- Panel: `Ustawienia > Aktualizacja bazy danych > Wykonaj aktualizacje`
|
||||
|
||||
## Kolejne migracje
|
||||
1. Dodaj nowy plik SQL w `database/migrations`.
|
||||
2. Wrzuc plik na serwer.
|
||||
3. Uruchom aktualizacje z panelu albo z CLI.
|
||||
Reference in New Issue
Block a user