switch testlucee to MariaDB
This commit is contained in:
parent
5ec91ed866
commit
e0df9c98b6
@ -44,7 +44,8 @@
|
|||||||
</cfif>
|
</cfif>
|
||||||
|
|
||||||
<cftry>
|
<cftry>
|
||||||
<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>
|
<!-- MariaDB: AUTO_INCREMENT instead of SERIAL -->
|
||||||
|
<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#" />
|
||||||
|
|||||||
@ -1,4 +1,9 @@
|
|||||||
# Тестовое приложение by Terraform - Lucee & Postgres
|
# Тестовое приложение by Terraform - Lucee & MariaDB
|
||||||
|
|
||||||
|
## MariaDB notes
|
||||||
|
|
||||||
|
Этот тестовый проект переведен на MariaDB. Datasource читается из переменных
|
||||||
|
окружения `testds_*` (driver, url, username, password).
|
||||||
|
|
||||||
### Что здесь можно делать:
|
### Что здесь можно делать:
|
||||||
|
|
||||||
|
|||||||
@ -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 + Postgres Demo</div>
|
<div style="font-size: 14px; color: var(--nubes-blue); font-weight: 600;">Lucee + MariaDB Demo</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="container main-content">
|
<div class="container main-content">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user