Compare commits

...

2 Commits

Author SHA1 Message Date
hackerESQ c454e85ad4 fix: date calculations cause failed tests 2025-07-09 19:37:51 -05:00
David Peng 487322abb5 fix: fix postgresql support (#100)
Fix #81
2025-07-09 19:11:25 -05:00
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ RUN apk add --no-cache \
bash \ bash \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \ && docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install -j$(nproc) \ && docker-php-ext-install -j$(nproc) \
gd pgsql zip pdo_mysql mysqli intl gd pgsql zip pdo_mysql pdo_pgsql mysqli intl
# Remove default nginx config # Remove default nginx config
RUN rm -rf /var/www/html \ RUN rm -rf /var/www/html \
+1 -1
View File
@@ -221,7 +221,7 @@ class DailyChangeTest extends TestCase
$second_transaction = Transaction::create([ $second_transaction = Transaction::create([
'symbol' => 'AAPL', 'symbol' => 'AAPL',
'portfolio_id' => $portfolio->id, 'portfolio_id' => $portfolio->id,
'date' => now()->subYears(3), 'date' => now()->subDays(1080), // 3 years
'quantity' => 1, 'quantity' => 1,
'cost_basis' => 39.89, 'cost_basis' => 39.89,
'transaction_type' => 'BUY', 'transaction_type' => 'BUY',