restore Postgres config

This commit is contained in:
“Naeel” 2026-02-21 15:14:37 +04:00
parent e0df9c98b6
commit 070aa5d547
3 changed files with 3 additions and 9 deletions

View File

@ -44,8 +44,7 @@
</cfif> </cfif>
<cftry> <cftry>
<!-- MariaDB: AUTO_INCREMENT instead of SERIAL --> <cfquery datasource="#request.DS#">CREATE TABLE IF NOT EXISTS nubes_test_table (id SERIAL PRIMARY KEY, test_data TEXT, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP);</cfquery>
<cfquery datasource="#request.DS#">CREATE TABLE IF NOT EXISTS nubes_test_table (id INT AUTO_INCREMENT PRIMARY KEY, test_data TEXT, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP);</cfquery>
<cfcatch><cfset request.db_error = cfcatch.message /></cfcatch> <cfcatch><cfset request.db_error = cfcatch.message /></cfcatch>
</cftry> </cftry>
<cfinclude template="#arguments.template#" /> <cfinclude template="#arguments.template#" />

View File

@ -1,9 +1,4 @@
# Тестовое приложение by Terraform - Lucee & MariaDB # Тестовое приложение by Terraform - Lucee & Postgres
## MariaDB notes
Этот тестовый проект переведен на MariaDB. Datasource читается из переменных
окружения `testds_*` (driver, url, username, password).
### Что здесь можно делать: ### Что здесь можно делать:

View File

@ -34,7 +34,7 @@
<div class="header-bg"> <div class="header-bg">
<div class="container header-content"> <div class="container header-content">
<img src="https://nubes.ru/themes/custom/nubes_2025/logo.svg" alt="Nubes" class="logo"> <img src="https://nubes.ru/themes/custom/nubes_2025/logo.svg" alt="Nubes" class="logo">
<div style="font-size: 14px; color: var(--nubes-blue); font-weight: 600;">Lucee + MariaDB Demo</div> <div style="font-size: 14px; color: var(--nubes-blue); font-weight: 600;">Lucee + Postgres Demo</div>
</div> </div>
</div> </div>
<div class="container main-content"> <div class="container main-content">