int
Some checks are pending
Backend CI / test (push) Waiting to run
Backend CI / build (push) Blocked by required conditions
Deploy Mnemo Cards / Deploy Backend (push) Waiting to run
Deploy Mnemo Cards / Deploy Web App (push) Blocked by required conditions
Deploy Mnemo Cards / Final Verification (push) Blocked by required conditions
Some checks are pending
Backend CI / test (push) Waiting to run
Backend CI / build (push) Blocked by required conditions
Deploy Mnemo Cards / Deploy Backend (push) Waiting to run
Deploy Mnemo Cards / Deploy Web App (push) Blocked by required conditions
Deploy Mnemo Cards / Final Verification (push) Blocked by required conditions
This commit is contained in:
parent
fb7780c215
commit
d703285d03
1 changed files with 3 additions and 2 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import 'package:drift/drift.dart';
|
||||
|
||||
/// PostgreSQL-совместимое выражение для текущей даты и времени
|
||||
/// PostgreSQL-совместимое выражение для текущей даты и времени как Unix timestamp (bigint)
|
||||
/// Используется вместо currentDateAndTime, который использует SQLite-специфичную функцию strftime
|
||||
const Expression<DateTime> currentTimestamp = CustomExpression<DateTime>('NOW()');
|
||||
/// Drift хранит DateTime как bigint (Unix timestamp в секундах), поэтому используем EXTRACT(EPOCH FROM NOW())::BIGINT
|
||||
const Expression<DateTime> currentTimestamp = CustomExpression<DateTime>('EXTRACT(EPOCH FROM NOW())::BIGINT');
|
||||
|
|
|
|||
Loading…
Reference in a new issue