Instruction
stringlengths
14
778
input_code
stringlengths
0
4.24k
output_code
stringlengths
1
5.44k
Make BigBlueButton recording listing more intuitive
{if $bbb_recordings} <p>{tr}Current recordings:{/tr}</p> <ol> {foreach from=$bbb_recordings item=recording} {if $recording.published} <li> {tr _0=$recording.startTime|tiki_long_date _1=$recording.startTime|tiki_short_time _2=$recording.endTime|tiki_short_time}On %0 from %1 to %2{/tr} {permission name=...
{if $bbb_recordings} <p>{tr}Current recordings:{/tr}</p> <ol> {foreach from=$bbb_recordings item=recording} {if $recording.published} <li> {tr _0=$recording.startTime|tiki_long_date _1=$recording.startTime|tiki_short_time _2=$recording.endTime|tiki_short_time}On %0 from %1 to %2{/tr} {permission name=...
Remove stutter from type CommandClassID
// THIS FILE IS AUTO-GENERATED BY CCGEN // DO NOT MODIFY package commandclass type CommandClassID byte const ( {{range .CommandClasses}} {{.GetConstName}} CommandClassID = {{.Key}}{{end}} ) func (c CommandClassID) String() string { switch c { {{range .CommandClasses}} {{if eq .Version 1}} case {{....
// THIS FILE IS AUTO-GENERATED BY CCGEN // DO NOT MODIFY package commandclass type ID byte const ( {{range .CommandClasses}} {{.GetConstName}} ID = {{.Key}}{{end}} ) func (c ID) String() string { switch c { {{range .CommandClasses}} {{if eq .Version 1}} case {{.GetConstName}}: return "{{.Hel...
Hide worker information if live dashboard disabled
<div class="col-lg-4"> <div class="panel panel-info"> <div class="panel-heading"> <h4 class="panel-title"><i class="fa fa-desktop fa-fw"></i> Worker Information</h4> </div> <div class="panel-body no-padding"> {if !$DISABLED_DASHBOARD and !$DISABLED_DASHBOARD_API} <table c...
{if !$DISABLED_DASHBOARD and !$DISABLED_DASHBOARD_API} <div class="col-lg-4"> <div class="panel panel-info"> <div class="panel-heading"> <h4 class="panel-title"><i class="fa fa-desktop fa-fw"></i> Worker Information</h4> </div> <div class="panel-body no-padding"> <table class="ta...
Change a small button in Publish
<section> <h3>{$c->__('post.preview')}</h3> <br /> <article> <section> <content> {$content|prepareString} </content> </section> </article> </section> <div class="no_bar"> <a onclick="Dialog.clear()" class="button flat"> {$c->__('button....
<section> <h3>{$c->__('post.preview')}</h3> <br /> <article> <section> <content> {$content|prepareString} </content> </section> </article> </section> <div class="no_bar"> <a onclick="Dialog.clear()" class="button flat"> {$c->__('button....
Put striptags around values in metatags, just to be sure.
{% with m.config.seo.keywords.value as keywords %} {% with m.config.seo.description.value as description %} {% if id %} <link rel="shorturl" href="{% url id id=id %}" /> <link rel="canonical" href="{{ m.rsc[id].page_url }}" /> {% if m.rsc[id].seo_noindex %} <meta name="robots" content="noindex" /> {%...
{% with m.config.seo.keywords.value as keywords %} {% with m.config.seo.description.value as description %} {% if id %} <link rel="shorturl" href="{% url id id=id %}" /> <link rel="canonical" href="{{ m.rsc[id].page_url }}" /> {% if m.rsc[id].seo_noindex %} <meta name="robots" content="noindex" /> {%...
Add infinite scroll to collection query
{% extends "beeldenzoeker/base.tpl" %} {% block body_class %}t--adlib-query{% endblock %} {% block content %} {% include "masthead/masthead.tpl" %} <main> <div class="adlib-object__actions"> <div class="main-container"> {% include "beeldenzoeker/share.tpl" %} ...
{% extends "beeldenzoeker/base.tpl" %} {% block body_class %}t--adlib-query{% endblock %} {% block content %} {% include "masthead/masthead.tpl" %} <main> <div class="adlib-object__actions"> <div class="main-container"> {% include "beeldenzoeker/share.tpl" %} ...
Add permission check to page create
{extends "designs/site.tpl"} {block title}Pages &mdash; {$dwoo.parent}{/block} {block content} <div class="row"> <div class="col-md-8 col-md-offset-2"> <header class="page-header"> <form action="/pages/create" method="GET" class="pull-right"> {* f...
{extends "designs/site.tpl"} {block title}Pages &mdash; {$dwoo.parent}{/block} {block content} <div class="row"> <div class="col-md-8 col-md-offset-2"> {if Emergence\CMS\PagesRequestHandler::checkWriteAccess(\Emergence\CMS\Page::create())} <header class="page-header"> ...
Disable Block Explorer Link and Chain Info on mmcFE Theme
{include file="global/block_header.tpl" BLOCK_HEADER="Pool Statistics"} <table class="" width="50%" style="font-size:14px;"> <tbody> <tr> <td class="leftheader">Pool Hash Rate</td> <td>{$GLOBAL.hashrate|number_format:"3"} {$GLOBAL.hashunits.pool}</td> </tr> <tr> <td class="leftheader">Current Total ...
{include file="global/block_header.tpl" BLOCK_HEADER="Pool Statistics"} <table class="" width="50%" style="font-size:14px;"> <tbody> <tr> <td class="leftheader">Pool Hash Rate</td> <td>{$GLOBAL.hashrate|number_format:"3"} {$GLOBAL.hashunits.pool}</td> </tr> <tr> <td class="leftheader">Current Total ...
Tweak the userdata for explicitness and error handling
#!/bin/bash # Create jupyter user adduser ${notebook_user} --gecos "" --disabled-password # Write config file mkdir /home/${notebook_user}/.jupyter cat << EOF > /home/${notebook_user}/.jupyter/jupyter_notebook_config.py c.NotebookApp.notebook_dir = u"/home/${notebook_user}/" c.NotebookApp.ip = "*" c.NotebookApp.port...
#!/usr/bin/env bash set -o errexit set -o nounset # Create jupyter user adduser ${notebook_user} --gecos "" --disabled-password # Write config file mkdir /home/${notebook_user}/.jupyter cat << EOF > /home/${notebook_user}/.jupyter/jupyter_notebook_config.py c.NotebookApp.notebook_dir = u"/home/${notebook_user}/" c....
Add link to project id and add internal_project_id to href tag in the projects overview table
<h3> Upload projects in <a href="http://biom-format.org/documentation/format_versions/biom-1.0.html">biom format (version 1.0)</a></h3> <div id="project-upload-message-area"></div> <form> <input class="btn" id="project-fileupload" type="file" name="files[]" multiple> </form> <script src="{#$WebRoot#}/js/uploadProje...
<h3> Upload projects in <a href="http://biom-format.org/documentation/format_versions/biom-1.0.html">biom format (version 1.0)</a></h3> <div id="project-upload-message-area"></div> <form> <input class="btn" id="project-fileupload" type="file" name="files[]" multiple> </form> <script src="{#$WebRoot#}/js/uploadProje...
Fix describe error in keil readme template
# TensorFlow Lite Micro Mbed Project This folder has been autogenerated by TensorFlow, and contains source, header, and project files needed to build a single TensorFlow Lite Micro target using the Keil uVision IDE.
# TensorFlow Lite Micro Keil Project This folder has been autogenerated by TensorFlow, and contains source, header, and project files needed to build a single TensorFlow Lite Micro target using the Keil uVision IDE.
Remove further Libre.fm branding from gnufm theme
{include file='mini-header.tpl'} <h2>{t}Login{/t}</h2> <h3>{t}Need an account?{/t} <a href="{base_url}/register.php">{t}Register now!{/t}</a></h3> {if isset($errors)} <p id='errors'>{$errors}</p> {/if} <form method="post"> {include file='login-form.tpl'} </form> <p>{t escape=no}Join us in #libre.fm on irc...
{include file='mini-header.tpl'} <h2>{t}Login{/t}</h2> <h3>{t}Need an account?{/t} <a href="{base_url}/register.php">{t}Register now!{/t}</a></h3> {if isset($errors)} <p id='errors'>{$errors}</p> {/if} <form method="post"> {include file='login-form.tpl'} </form> {include file='mini-footer.tpl'}
Add title for other objects
{% extends "page.tpl" %} {% block title %}{{ id.title }}{% endblock %} {% block body_class %}collection{% endblock %} {% block content %} <div class="page--collection page__content-wrapper do_ginger_default_content_group_navigation"> {% with id as collection %} {% block masthead %} ...
{% extends "page.tpl" %} {% block title %}{{ id.title }}{% endblock %} {% block body_class %}collection{% endblock %} {% block content %} <div class="page--collection page__content-wrapper do_ginger_default_content_group_navigation"> {% with id as collection %} {% block masthead %} ...
Add a publish button on user Contact page
<ul class="list thick"> <li> {if="$contactr != null"} <span class="control icon active gray" onclick="ContactHeader_ajaxEditContact('{$contact->jid|echapJS}')"> <i class="zmdi zmdi-edit"></i> </span> <span class="control icon active gray" onclick="ContactH...
<ul class="list thick"> <li> {if="$contactr != null"} <span class="control icon active gray" onclick="ContactHeader_ajaxEditContact('{$contact->jid|echapJS}')"> <i class="zmdi zmdi-edit"></i> </span> <span class="control icon active gray" onclick="ContactH...
Add link so users can ask for a new connector
<div class="ImportOptions-navigation"> <button class="Carousel-Navigation CDB-Size-large ImportOptions-navigationButton ImportOptions-navigationButton--prev js-goPrev"> <i class="CDB-IconFont CDB-IconFont-arrowPrev u-actionTextColor"></i> </button> <button class="Carousel-Navigation CDB-Size-large ImportOptio...
<div class="ImportOptions-navigation"> <button class="Carousel-Navigation CDB-Size-large ImportOptions-navigationButton ImportOptions-navigationButton--prev js-goPrev"> <i class="CDB-IconFont CDB-IconFont-arrowPrev u-actionTextColor"></i> </button> <button class="Carousel-Navigation CDB-Size-large ImportOptio...
Add smarty block to allow definition of css-classes on html tag
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="description" content="{"{block name='head-description'}{/block}"|escape}"> <meta name="keywords" content="{"{block name='head-keywords'}{/block}"|escape}"> <title>{block name='title'}{$pageObj->getTitle()|escape}{/block}</title> {reso...
<!doctype html> <html lang="en" class="{block name='html-class'}{/block}"> <head> <meta charset="utf-8"> <meta name="description" content="{"{block name='head-description'}{/block}"|escape}"> <meta name="keywords" content="{"{block name='head-keywords'}{/block}"|escape}"> <title>{block name='title'}{$pageObj->...
Improve template for meta admin
<!DOCTYPE html> <html> <meta name="viewport" content="width=device-width" /> <noscript><meta http-equiv="refresh" content="0;/?legacy=1" /></noscript> <script data-spa> if (!Object.getPrototypeOf || !Object.defineProperty || !window.history || (function () {'use strict'; return this; }()) || (Object.getPrototype...
<!DOCTYPE html> <html> <meta name="viewport" content="width=device-width" /> <noscript><meta http-equiv="refresh" content="0;/?legacy=1" /></noscript> <script data-spa> if (!Object.getPrototypeOf || !Object.defineProperty || !window.history || (function () {'use strict'; return this; }()) || (Object.getPrototype...
Use newer version of SchemaSchemaDemo.jar.
urn:bitprint:OLY3VJIZIX53DRG3F5S5LO7VYFQWPZ2H.ICXJSXB5VHDUBAIUKEZYU2YPC3AENQ2ADWMIGLQ
urn:bitprint:SWVUD74Y3R7L4B4VJVCYZCGMWZDFLFOD.CR2QNHSPGTKEP4LQPZJGT6BXHFPJOG45DAR4FBY
Update DBC, Schema, and CMIP-REST.
{ "description": "{#projectName}", "require": { "php": ">=5.2.0", "ryprop/nife": "~0.0.1", "earthit/php-common": "~0.0.4", "earthit/dbc": "~0.0.1", "earthit/schema": "~0.0.1", "earthit/cmip-rest": "~0.0.1", "doctrine/dbal": "~2.4.0" }, "autoload": { "psr-0": { "{#projectNamespace}_": "lib/" } ...
{ "description": "{#projectName}", "require": { "php": ">=5.2.0", "ryprop/nife": "~0.0.1", "earthit/php-common": "~0.0.4", "earthit/dbc": "~0.0.2", "earthit/schema": "~0.0.2", "earthit/cmip-rest": "~0.0.2", "doctrine/dbal": "~2.4.0" }, "autoload": { "psr-0": { "{#projectNamespace}_": "lib/" } ...
Add rsc button title parameter fix
{% include "_action_ginger_connection.tpl" category=category cg_id=id.content_group_id predicate=predicate add_author direction='out' btn_class='page-action--add' title=title tab="new" tabs_enabled=["new"] %}
{% include "_action_ginger_connection.tpl" category=category cg_id=id.content_group_id predicate=predicate add_author direction='out' btn_class='page-action--add' btn_title=btn_title tab="new" tabs_enabled=["new"] %}
Fix user list search not responding to clicks on search results
<div class="user-mode user-mode-search"> {{#each matches}} <span role="button" class="{{original.className}}">{{{string}}}</span> {{/each}} </div>
<div class="user-mode user-mode-search"> {{#each matches}} <span role="button" class="{{original.className}}" data-name="{{original.dataset.name}}">{{{string}}}</span> {{/each}} </div>
Add condig language to view
<!DOCTYPE html> <html class="no-js" lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title><?= config('app.title').' - '.config('app.description') ?></title> <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Lato:300"> <link rel="styleshe...
<!DOCTYPE html> <html class="no-js" lang="<?= config('lang.default') ?>"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title><?= config('app.title').' - '.config('app.description') ?></title> <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Lato:30...
Remove jq not needed due to r56027
{if $prefs.javascript_enabled !== 'y'} <div class="modal-footer"> <a class="btn btn-default" href="{$extra.referer}"> {tr}Back{/tr} </a> <button type='submit' form="confirm-action" class="btn {if !empty($confirmButtonClass)}{$confirmButtonClass}{else}btn-primary{/if}"> {if !empty($confirmButton)} {$con...
{if $prefs.javascript_enabled !== 'y'} <div class="modal-footer"> <a class="btn btn-default" href="{$extra.referer}"> {tr}Back{/tr} </a> <button type='submit' form="confirm-action" class="btn {if !empty($confirmButtonClass)}{$confirmButtonClass}{else}btn-primary{/if}"> {if !empty($confirmButton)} {$con...
Add button class to better see that is a button
{include file="inc/header.tpl"} <h2>{$LANG.finish}</h2> <p class="bold">{$LANG.looking_hosting}</p> <p class="bold"><a href="{$smarty.const.PH7_URL_ROOT}" target="_blank">{$LANG.go_your_site}</a> &nbsp; | &nbsp; <a href="{$smarty.const.PH7_URL_ROOT}admin123" target="_blank">{$LANG.go_your_admin_panel}</a></p> <p>&nbs...
{include file="inc/header.tpl"} <h2>{$LANG.finish}</h2> <p class="bold">{$LANG.looking_hosting}</p> <p class="bold"><a href="{$smarty.const.PH7_URL_ROOT}" target="_blank">{$LANG.go_your_site}</a> &nbsp; | &nbsp; <a href="{$smarty.const.PH7_URL_ROOT}admin123" target="_blank">{$LANG.go_your_admin_panel}</a></p> <p>&nbs...
Fix missing attributes on unhandled messages
<div class="msg msg-{{slugify command}} {{type}}{{#if self}} self{{/if}}{{#if highlight}} highlight{{/if}}" data-time="{{time}}"> <span class="time tooltipped tooltipped-e" aria-label="{{localetime time}}"> {{tz time}} </span> <span class="from">[{{command}}]</span> <span class="content"> {{#each params}} <s...
<div class="msg msg-{{slugify command}} {{type}}{{#if self}} self{{/if}}{{#if highlight}} highlight{{/if}}" id="msg-{{id}}" data-time="{{time}}"> <span class="time tooltipped tooltipped-e" aria-label="{{localetime time}}"> {{tz time}} </span> <span class="from">[{{command}}]</span> <span class="content"> {{#eac...
Update notification view to accept html as info parameter.
<li class="Notifier-item <%- (status === 'loading') ? 'is-working' : ''%>"> <% if (status === 'loading') { %> <div class="Notifier-icon CDB-LoaderIcon u-rSpace--m js-theme"> <div class="CDB-LoaderIcon-item"> <span class="CDB-LoaderIcon-itemClose"></span> <span class="CDB-LoaderIcon-itemCircle"></sp...
<li class="Notifier-item <%- (status === 'loading') ? 'is-working' : ''%>"> <% if (status === 'loading') { %> <div class="Notifier-icon CDB-LoaderIcon u-rSpace--m js-theme"> <div class="CDB-LoaderIcon-item"> <span class="CDB-LoaderIcon-itemClose"></span> <span class="CDB-LoaderIcon-itemCircle"></sp...
Fix missing Tabs widget in Post
<?php $this->widget('Init');?> <?php $this->widget('VisioLink');?> <?php $this->widget('Notification');?> <?php $this->widget('Toast');?> <?php $this->widget('Upload');?> <?php $this->widget('Search');?> <?php $this->widget('Notifications');?> <?php $this->widget('SendTo');?> <?php $this->widget('ContactActions');?> <...
<?php $this->widget('Init');?> <?php $this->widget('VisioLink');?> <?php $this->widget('Notification');?> <?php $this->widget('Toast');?> <?php $this->widget('Upload');?> <?php $this->widget('Search');?> <?php $this->widget('Notifications');?> <?php $this->widget('SendTo');?> <?php $this->widget('Tabs');?> <?php $this...
Add class 'has-depiction' if the list item has a depiction.
{% if id.is_visible and id.is_published and not id|member:exclude %} <li {% include "_language_attrs.tpl" id=id class="do_clickable" %}> {% with id.depiction as dep %} {% if dep %} {% if dep.id.is_a.document %} <img src="{% image_url dep mediaclass="base-list-item-small-document" %}" alt="" /> {% else %...
{% if id.is_visible and id.is_published and not id|member:exclude %} {% with id.depiction as dep %} {% if dep %} <li {% include "_language_attrs.tpl" id=id class="do_clickable has-depiction" %}> {% if dep.id.is_a.document %} <img src="{% image_url dep mediaclass="base-list-item-small-document" %}" alt="" /> {% ...
Disable trade currency if no price currency defined
<div id="siteinfo">{$GLOBAL.websitename}<br/> <span class="slogan">{$GLOBAL.slogan}</span> </div> <div id="ministats"> <table border="0"> <tr> <td><li>{$GLOBAL.config.currency}/{$GLOBAL.config.price.currency}: {$GLOBAL.price|default:"n/...
<div id="siteinfo">{$GLOBAL.websitename}<br/> <span class="slogan">{$GLOBAL.slogan}</span> </div> <div id="ministats"> <table border="0"> <tr> {if $GLOBAL.config.price.currency}<td><li>{$GLOBAL.config.currency}/{$GLOBAL.config.price.cur...
Fix for no rosters in view
<div id="roster_view" class="dataTables_wrapper"> <table> <tr> <th>{$labels.name}</th> <th>{$labels.type}</th> <th>{$labels.value}</th> <th>{$labels.next_run}</th> <th>{$labels.last_run}</th> <th>{$labels.privilege}</th> <th>{$labels.links}</th> </tr> {assign var="rowClass" value="odd-row"} {f...
<div id="roster_view" class="dataTables_wrapper"> <table> <tr> <th>{$labels.name}</th> <th>{$labels.type}</th> <th>{$labels.value}</th> <th>{$labels.next_run}</th> <th>{$labels.last_run}</th> <th>{$labels.privilege}</th> <th>{$labels.links}</th> </tr> {assign var="rowClass" value="odd-row"} {i...
Fix a typo in toolchain definition
load("@local_config_platform//:constraints.bzl", "HOST_CONSTRAINTS") toolchain( name = "cc-toolchain-%{name}", exec_compatible_with = HOST_CONSTRAINTS, target_compatible_with = HOST_CONSTRAINTS, toolchain = "@local_config_cc//:cc-compiler-%{name}", toolchain_type = "@bazel_tools//tools/cpp:toolchain...
load("@local_config_platform//:constraints.bzl", "HOST_CONSTRAINTS") toolchain( name = "cc-toolchain-%{name}", exec_compatible_with = HOST_CONSTRAINTS, target_compatible_with = HOST_CONSTRAINTS, toolchain = "@local_config_cc//:cc-compiler-%{name}", toolchain_type = "@bazel_tools//tools/cpp:toolchain...
Fix time format so no unneeded link will be generated bu wiki
{* $Header: /cvsroot/tikiwiki/tiki/templates/modules/mod-since_last_visit.tpl,v 1.3 2003-08-07 20:56:53 zaufi Exp $ *} {if $user} <div class="box"> <div class="box-title"> {include file="modules/module-title.tpl" module_title="{tr}Since your last visit{/tr}" module_name="since_last_visit"} </div> <div class="box-data"...
{* $Header: /cvsroot/tikiwiki/tiki/templates/modules/mod-since_last_visit.tpl,v 1.4 2003-08-13 22:46:11 zaufi Exp $ *} {if $user} <div class="box"> <div class="box-title"> {include file="modules/module-title.tpl" module_title="{tr}Since your last visit{/tr}" module_name="since_last_visit"} </div> <div class="box-data"...
Use javascript to switch perspective on select change (and hide "Go" button) if enabled, to be more consistent with other modules (theme, lang etc)
{if $perspectives|@count gt 0} {tikimodule error=$module_params.error title=$tpl_module_title name="perspective" flip=$module_params.flip decorations=$module_params.decorations nobox=$module_params.nobox notitle=$module_params.notitle} <form method="get" action="tiki-switch_perspective.php"> <select name="perspec...
{if $perspectives|@count gt 0} {tikimodule error=$module_params.error title=$tpl_module_title name="perspective" flip=$module_params.flip decorations=$module_params.decorations nobox=$module_params.nobox notitle=$module_params.notitle} <form method="get" action="tiki-switch_perspective.php"> <select name="perspec...
Add cuda_is_configured() build macro for testing whether CUDA was enabled at configure time. Change: 141474932
# Macros for building CUDA code. def cuda_path_flags(): """Stub for compatibility with internal build.""" return [] def if_cuda(if_true, if_false = []): """Shorthand for select()'ing on whether we're building with CUDA. Returns a select statement which evaluates to if_true if we're building with C...
# Macros for building CUDA code. def cuda_path_flags(): """Stub for compatibility with internal build.""" return [] def if_cuda(if_true, if_false = []): """Shorthand for select()'ing on whether we're building with CUDA. Returns a select statement which evaluates to if_true if we're building with C...
Hide empty fields in HTML popup
<table class="lizmapPopupTable"> <thead> <tr> <th>{@view~map.popup.table.th.data@}</th> <th>{@view~map.popup.table.th.value@}</th> </tr> </thead> <tbody> {foreach $attributes as $attribute} {if $attribute['name'] != 'geometry' && $attribute['name'] != 'maptip'} <tr> <th>{$attrib...
<table class="lizmapPopupTable"> <thead> <tr> <th>{@view~map.popup.table.th.data@}</th> <th>{@view~map.popup.table.th.value@}</th> </tr> </thead> <tbody> {foreach $attributes as $attribute} {if $attribute['name'] != 'geometry' && $attribute['name'] != 'maptip' && $attribute['value'] != ''...
Update dirs with docker volume mount
{{/* Config dirs */}} {{- define "config.dirs" }} - name: POLYAXON_DIRS_DOCKER value: {{ .Values.dirs.docker | quote }} - name: POLYAXON_DIRS_NVIDIA value: {{ toJson .Values.dirs.nvidia | quote }} {{- if and .Values.mountPaths.nvidia.lib .Values.mountPaths.nvidia.bin .Values.mountPaths.nvidia.libcuda }} - name: POL...
{{/* Config dirs */}} {{- define "config.dirs" }} - name: POLYAXON_DIRS_DOCKER value: {{ .Values.dirs.docker | quote }} - name: POLYAXON_DIRS_NVIDIA value: {{ toJson .Values.dirs.nvidia | quote }} {{- if .Values.mountPaths.docker }} - name: POLYAXON_MOUNT_PATHS_DOCKER value: {{ toJson .Values.mountPaths.docker | ...
Fix typo in XAMPP name + fix potential security flaws
<h2>Use <a href="http://ph7cms.com">pH7CMS</a> on a non-Linux system</h2> <p>Of course, you can also install <strong>pH7CMS</strong> on Mac and Windows!</p> <p>All pH7CMS versions are compatible with Mac OS and from <em>pH7CMS 1.0.2</em> with Windows OS.</p> <p>You can install a server manually but to simplify tasks, ...
<h2>Use <a href="http://ph7cms.com">pH7CMS</a> on a non-Linux system</h2> <p>Of course, you can also install <strong>pH7CMS</strong> on Mac and Windows!</p> <p>All pH7CMS versions are compatible with Mac OS and from <em>pH7CMS 1.0.2</em> with Windows OS.</p> <p>You can install a server manually but to simplify tasks, ...
Fix title of checkin complete page
{extends designs/site.tpl} {block title}How to help &mdash; {$dwoo.parent}{/block} {block content} {$Checkin = $data} <div class="page-header"> <h1>{_ "Success!"}</h1> </div> <p>Thanks for checking in {if $Checkin->Project}to {projectLink $Checkin->Project}{/if} @ {Laddr::$siteName|escape}!</...
{extends designs/site.tpl} {block title}Checkin Complete &mdash; {$dwoo.parent}{/block} {block content} {$Checkin = $data} <div class="page-header"> <h1>{_ "Success!"}</h1> </div> <p>Thanks for checking in {if $Checkin->Project}to {projectLink $Checkin->Project}{/if} @ {Laddr::$siteName|escap...
Add Google API key form
<div class="col-md-8"> {{ ConfigFileCoreForm::display('service.api', PH7_PATH_APP_CONFIG) }} <p class="small">{lang}Google Map might not be working if you are not using a API key. It is highly recommended to use one.{/lang}<br /> {lang 'You can get one <a href="%0%">here</a>. Enable Google Map API (which i...
Join Collaborations - The first search result starts at the wrong location.
{foreach $results as $result} <div class="col-md-6"> {assign var=grpname value="syn_organicgrp_`$result.object_id`"} {if not $grpname|in_group} {include file="syn-groupsbox.tpl" private="{if $result.status == 'o'}n{elseif $result.status == 'p'}y{/if}"} {/if} </div> {/foreach}
{foreach $results as $result} {assign var=grpname value="syn_organicgrp_`$result.object_id`"} {if not $grpname|in_group} <div class="col-md-6"> {include file="syn-groupsbox.tpl" private="{if $result.status == 'o'}n{elseif $result.status == 'p'}y{/if}"} </div> {/if} {/foreach}
Add template for list with label and URI
<ul> {% for item in items %} {% if item['@id'] as uri %} <a href="{{ uri }}"> <li>{{ item['rdfs:label'] }}</li> </a> {% else %} <li>{{ item['rdfs:label'] }}</li> {% endif %} {% endfor %} </ul>
Check on admin rights of link to admin
{% with m.config.i18n.language_list.list as languages %} {% with m.rsc[id].language as r_lang %} {% wire id=#form type="submit" postback={ rsc_edit_basics id=id edge_id=edge_id update_element=update_element template=template actions=actio...
Enable watch events for comments on wiki pages
{tr}The page {$mail_page} was commented by {$mail_user} at {$mail_date|tiki_short_datetime}{/tr} {tr}You can view the page following this link:{/tr} {$mail_machine}?page={$mail_page|escape:"url"} {tr}Title{/tr}: {$mail_title} {tr}Comment:{/tr} {$mail_comment} {tr}If you don't want to receive these notifications follo...
Add a new doc page
<h2>How to set the development mode</h2> <p>To set the development mode, please edit <code>~/_YOUR-PROTECTED-FOLDER/app/configs/config.ini</code><br /> Replace <code>"environment = production"</code> by <code>"environment = development"</code> at the beginning of the file.<br /><br /> After that, it is also better to...
Add a test template for event messages
<h4>Events</h4> <table id="messageDumpTable" style="font-size:0.8em;border-collapse:collapse;"> <thead> <tr> <th>Date</th> <th>Reason</th> <th> </th> </tr> </thead> <tbody> <? for event events ?> <tr> <td><?=event.putDate?></td> <td><?=event.reason?> - <?= event.desc ?></td> <td><?=even...
Remove hard code from testing
/* * Partial src: https://github.com/eris-ltd/hello-eris/blob/master/contracts/DealManager.sol */ import "Task.sol"; import "SequenceList.sol"; contract TaskManager { SequenceList list = new SequenceList(); /*modifier onlyOwner() { if (msg.sender != owner) throw; _ // `_` is synony...
/* * Partial src: https://github.com/eris-ltd/hello-eris/blob/master/contracts/DealManager.sol */ import "Task.sol"; import "SequenceList.sol"; contract TaskManager { SequenceList list = new SequenceList(); /*modifier onlyOwner() { if (msg.sender != owner) throw; _ // `_` is synony...
Update pragma version for test contract
pragma solidity ^0.4.24; contract NewPragma { uint x; constructor() public { x = 5; } }
pragma solidity ^0.5.0; contract NewPragma { uint x; constructor() public { x = 5; } }
Add new example of http post request
#include <amxmodx> #include <curl> #pragma semicolon 1 #pragma ctrlchar '\' public plugin_init() { register_plugin("HTTP: Post request", "1.0.0", "gamingEx aka. Kaido Ren"); @requestBegin(); } enum dataStruct { curl_slist: linkedList }; @requestBegin() { new CURL: pCurl, curl_slist: pHeaders, sData[data...
Add the beginnings of a Richards benchmark.
; Based on V8 JavaScript richards ID_IDLE: 0, ID_WORKER: 1, ID_HANDLER_A: 2, ID_HANDLER_B: 3, ID_DEVICE_A: 4, ID_DEVICE_B: 5, NUMBER_OF_IDS: 6, COUNT: 10000, EXPECTED_QUEUE_COUNT: 23246, EXPECTED_HOLD_COUNT: 9297, STATE_RUNNING: 0, STATE_RUNNABLE: 1, STATE_SUSPENDED: 2, STATE_HELD: ...
Exclude entities with ONLY a type declaration from label check
# # Missing Label # # Problem: An entity does not have a label. This may cause confusion or misuse. # # Solution: Add a label. PREFIX owl: <http://www.w3.org/2002/07/owl#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT DISTINCT ?entity ?property ?value WHERE { ?entity ?any ?o . BIND ("rdfs:label" AS ...
# # Missing Label # # Problem: An entity does not have a label. This may cause confusion or misuse. # # Solution: Add a label. PREFIX owl: <http://www.w3.org/2002/07/owl#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT DISTINCT ?entity ?property ?...
Create queries to process genre statements
# 1) Remove split statements from publications SPARQL PREFIX migration: <http://migration.deichman.no/> PREFIX : <http://data.deichman.no/ontology#> WITH <http://deichman.no/migration> delete { ?doc ?p ?o } where { ?doc a :Publication ; ?p ?o . values ?p { migration:genreSplit1 migration:genreSplit...
Add sketch of RWO to MADSRDF Name construct
PREFIX madsrdf: <http://www.loc.gov/mads/rdf/v1#> CONSTRUCT { ?name a madsrdf:PersonalName ; madsrdf:identifiesRWO ?s ; madsrdf:elementList ( ?givenElem ?famnameElem ) . ?famnameElem a madsrdf:FamilyNameElement ; madsrdf:elementValue ?familyName . ?...
Switch to [] spawn from execVM
/* Wolfe Edits get init'd here! */ //[] execVM "init_TFAR.sqf"; //TFAR Init [] execVM "init_ACE_Spray.sqf"; //Ace3 Custom Sprays Init
/* Wolfe Edits get init'd here! */ //[] execVM "init_TFAR.sqf"; //TFAR Init [] spawn "init_ACE_Spray.sqf"; //Ace3 Custom Sprays Init
Move mission announcement a little up
// ****************************************************************************************** // * This project is licensed under the GNU Affero GPL v3. Copyright © 2014 A3Wasteland.com * // ****************************************************************************************** //@file Version: 1.0 //@file Name: ini...
// ****************************************************************************************** // * This project is licensed under the GNU Affero GPL v3. Copyright © 2014 A3Wasteland.com * // ****************************************************************************************** //@file Version: 1.0 //@file Name: ini...
Remove spawn from track projectile
params ["_projectile", "_side"]; private _id = format ["%1", _projectile]; private _position = getPosASL _projectile; private _dir = direction _projectile; private _simulation = getText (configFile >> "cfgAmmo" >> typeOf _projectile >> "simulation"); private _lastTime = time; waitUntil { if !(isNull _projectile) t...
params ["_projectile", "_side"]; private _id = format ["%1", _projectile]; private _position = getPosASL _projectile; private _dir = direction _projectile; private _simulation = getText (configFile >> "cfgAmmo" >> typeOf _projectile >> "simulation"); private _lastTime = time; waitUntil { if !(isNull _projectile) t...
Add query for selecting coursework for student users
SELECT Coursework.id AS coursework_id, Coursework.title AS title, Coursework.date_submitted AS date_submitted, Coursework.file AS file, Coursework.file_extension AS file_extension, Coursework.class_id AS class_id, Class.module_id AS module_id, Module.name AS module_name, User.id AS lecturer_id, Lecturer.email AS lectu...
Add SQL script to output workspace IDs Looks like internal workspaces don't have the source_identifier set. Previously was using the condition:
set echo off set verify off set feedback off set heading off set trimspool on set termout off set pagesize 0 spool &1 select to_char(workspace_id) from apex_workspaces where source_identifier is null; spool off exit
Create topology and use pgRouting
-- Install extensions CREATE EXTENSION postgis; CREATE EXTENSION postgis_topology; CREATE EXTENSION pgrouting; SET search_path = topology,public; -- Part I: Create topology for 'roads' with postgis_topology SELECT topology.CreateTopology('roads_topo', 4326); SELECT topology.AddTopoGeometryColumn('roads_topo', 'public'...
Change TO ds table protocol column to not null
/* Copyright 2016 Comcast Cable Communications Management, LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable la...
Change ARVO table columns regarding taustakysymys.
IF NOT EXISTS ( select * from INFORMATION_SCHEMA.COLUMNS where TABLE_SCHEMA='dbo' and TABLE_NAME='sa_arvo_kaikki' and COLUMN_NAME='taustakysymykset' ) BEGIN ALTER TABLE dbo.sa_arvo_kaikki ADD taustakysymykset bit NULL END IF EXISTS ( select * from INFORMATION_SCHEMA.COLUMNS where TABLE_SCHEMA='dbo' and TAB...
Add constraint to datasetVersion table
/* ---------------------------------------- Add unique constraint to prevent multiple drafts Ticket 2132 */ ---------------------------------------- ALTER TABLE datasetversion ADD CONSTRAINT uq_datasetversion UNIQUE(dataset_id, versionnumber, minorversionnumber);
Implement notification for IACUC Rescheduled event
INSERT INTO NOTIFICATION_TYPE (NOTIFICATION_TYPE_ID, MODULE_CODE, ACTION_CODE, DESCRIPTION, SUBJECT, MESSAGE, PROMPT_USER, SEND_NOTIFICATION, UPDATE_USER, UPDATE_TIMESTAMP, VER_NBR, OBJ_ID) VALUES(SEQ_NOTIFICATION_TYPE_ID.NEXTVAL, (SELECT MODULE_CODE FROM COEUS_MODULE WHERE DESCRIPTION='IACUC Protocol'),'202','...
Create sql migration to initialize database
CREATE SEQUENCE "public"."Movies_id_seq" INCREMENT 1 MINVALUE 1 MAXVALUE 9223372036854775807 START 1 CACHE 1; CREATE SEQUENCE "public"."M_genre_genre_id_seq" INCREMENT 1 MINVALUE 1 MAXVALUE 9223372036854775807 START 1 CACHE 1; CREATE OR REPLACE FUNCTION public.post_rating_update_func() RETURNS trigger LANGUAGE plp...
Add database patch for oauth_consumer flag.
-- Add a flag to oauth consumers to indicate whether -- this key can be used with a grant_type of "password" ALTER TABLE `oauth_consumers` ADD `enable_password_grant` TINYINT(1) DEFAULT 0; INSERT INTO patch_history SET patch_number = 48;
Make null function test more interesting.
SELECT name, order_date FROM customers INNER JOIN orders ON customers.cid = orders.cid WHERE name = SUBSTR(NULL, 10, 11)
SELECT name, order_date FROM customers INNER JOIN orders ON customers.cid = orders.cid WHERE name = SUBSTR(name, NULL, 10)
Change type of timestamp columns
CREATE FUNCTION alter_timestamps() RETURNS void AS $$ DECLARE columns varchar[] := ARRAY['creation_date', 'modification_date', 'publication_date']; col varchar; BEGIN SET LOCAL timezone='UTC'; FOREACH col IN ARRAY columns LOOP EXECUTE format('ALTER TABLE articles ' 'ALTER COLUMN %I TYPE timestamp with time z...
Update evolutions, adding logical name to asset meta
# --- Add logical name of disks to asset meta # --- !Ups INSERT INTO asset_meta (name, priority, label, description) VALUES ('DISK_LOGICAL_NAME', -1, 'Disk logical name', 'The logical name of the disk as reported by lshw'); # --- !Downs DELETE FROM asset_meta WHERE name ='DISK_LOGICAL_NAME'
Add IF NOT EXISTS to all operations
/** * Create Posts Table */ CREATE TABLE IF NOT EXISTS posts ( id INTEGER PRIMARY KEY AUTOINCREMENT, title TEXT NOT NULL, slug TEST NOT NULL, text_raw TEXT NOT NULL, text_compiled TEXT NOT NULL, created_date DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, updated_date DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP )...
Add AddressBase Premium Address Point view
-- View: addressbase_premium.address_point CREATE OR REPLACE VIEW addressbase_premium.address_point AS SELECT deliverypointaddress.rmudprn AS OSAPR, deliverypointaddress.departmentname AS departmentname, deliverypointaddress.poboxnumber AS poboxnumber, deliverypointaddress.organisationname AS organisationna...
Add sample SQL template to create PostgreSQL VIEW for iRedMail server.
-- -- Notes: -- -- * if you're running RHEL/CentOS 6 or 7, don't forget to uncomment lines -- under `Required by RHEL/CentOS X` to create dblink function. -- -- * of course you should replace `xxx` in below sample SQL command by the -- real SQL username/password/database name. -- -- * it's better to use SQL user `v...
Add millis to datetime fields in DB
ALTER TABLE SECURE_DATA CHANGE CREATED_TS CREATED_TS DATETIME(3) NOT NULL, CHANGE LAST_UPDATED_TS LAST_UPDATED_TS DATETIME(3) NOT NULL; ALTER TABLE SECURE_DATA_VERSION CHANGE ACTION_TS ACTION_TS DATETIME(3) NOT NULL, CHANGE VERSION_CREATED_TS VERSION_CREATED_TS DATETIME(3) NOT NULL; ALTER TABLE SAFE_DEPOSIT_B...
Add occurrence date range columns to model runs db table
-- Updates the database schema to add occurrence_data_range_start_date and occurrence_data_range_end_date columns to the model_run table. -- Copyright (c) 2015 University of Oxford ALTER TABLE model_run ADD COLUMN occurrence_data_range_start_date timestamp; ALTER TABLE model_run ADD COLUMN occurrence_data_range_end_da...
Add ProjectLicense SQL insert script
BEGIN; INSERT INTO projectlicense VALUES(1, 'f', 'f', 'f', 't', 'GNU General Public License 2.0', 0, 'GPL-2.0', 'http://opensource.org/licenses/GPL-2.0'); INSERT INTO projectlicense VALUES(2, 'f', 'f', 'f', 't', 'GNU General Public License 3.0', 1, 'GPL-3.0', 'http://opensource.org/licenses/GPL-3.0'); INSERT INTO pro...
Reduce index size to avoid error "1071 (42000) at line 302: Specified key was too long; max key length is 1000 bytes"
/* Reduce index size to avoid error "1071 (42000) at line 302: Specified key was too long; max key length is 1000 bytes" */ ALTER TABLE user DROP INDEX user_category, DROP INDEX user_last_first_name, DROP INDEX user_first_last_name, DROP INDEX user_phone, DROP INDEX user_name ; ALTER TABLE user ADD INDEX user_cat...
Add Weewx postgres database script.
-- -- PostgreSQL database initialization script -- -- Execute it like this: psql -d <your_database> -f weewx_pg.sql -- SET statement_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = off; SET check_function_bodies = false; SET client_min_messages = warning; SET escape_string_warning = off; ...
Add script with DB schema
CREATE TABLE IF NOT EXISTS entries ( title TEXT, content TEXT ); CREATE TABLE IF NOT EXISTS tags ( name TEXT ); CREATE TABLE IF NOT EXISTS tags_entries ( tag_id INTEGER, entry_id INTEGER, PRIMARY KEY (tag_id, entry_id) ) WITHOUT ROWID;
Define admin roles to import/export domains
Create or replace FUNCTION __temp_insert_add_domain_import_export_permissions_for_admins() RETURNS VOID AS $procedure$ DECLARE v_VM_IMPORTER_EXPORTER_ID UUID; BEGIN v_VM_IMPORTER_EXPORTER_ID := 'def00030-0000-0000-0000-def000000011'; INSERT INTO roles (id, name, description, is_readonly, role_type, al...
Add PL/PGSQL function to find tables involved in a query
-- Return an array of table names used by a given query CREATE OR REPLACE FUNCTION CDB_QueryTables(query text) RETURNS name[] AS $$ DECLARE exp XML; tables NAME[]; BEGIN EXECUTE 'EXPLAIN (FORMAT XML) ' || query INTO STRICT exp; -- Now need to extract all values of <Relation-Name> --RAISE DEBUG 'Explain: ...
Fix path error for load data command
USE log_data; LOAD DATA INPATH '/statistics/log_data/apache.log' OVERWRITE INTO TABLE apache_log;
USE log_data; LOAD DATA INPATH 'statistics/log_data/apache.log' OVERWRITE INTO TABLE apache_log;
Add migration script for devices with missing device type
--- -- #%L -- DeviceHive Dao RDBMS Implementation -- %% -- Copyright (C) 2016 DataArt -- %% -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-...
Convert recently created tables default charset to utf8mb4
ALTER TABLE `editor_subscriptions` COMMENT ''; ALTER TABLE `addons_reusedguid` CONVERT TO CHARACTER SET utf8mb4; ALTER TABLE `addons_users_pending_confirmation` CONVERT TO CHARACTER SET utf8mb4; ALTER TABLE `api_apikeyconfirmation` CONVERT TO CHARACTER SET utf8mb4; ALTER TABLE `hero_primaryhero` CONVERT TO CHARACTER S...
Implement IACUC notification for Lift Hold
INSERT INTO NOTIFICATION_TYPE (NOTIFICATION_TYPE_ID, MODULE_CODE, ACTION_CODE, DESCRIPTION, SUBJECT, MESSAGE, PROMPT_USER, SEND_NOTIFICATION, UPDATE_USER, UPDATE_TIMESTAMP, VER_NBR, OBJ_ID) VALUES (SEQ_NOTIFICATION_TYPE_ID.NEXTVAL, (SELECT MODULE_CODE FROM COEUS_MODULE WHERE DESCRIPTION='IACUC Protocol'),'208',...
Add quota references to entities.
select fn_db_add_column('vm_static', 'quota_id', 'UUID'); select fn_db_add_column('images', 'quota_id', 'UUID'); select fn_db_add_column('storage_pool', 'quota_enforcement_type', 'INTEGER');
Change the unexpired table to use DATE columns to make for faster indicies
-- +goose Up -- SQL in section 'Up' is executed when this migration is applied ALTER TABLE `unexpired_certificate` CHANGE COLUMN `notBefore` `notBefore` DATE NULL DEFAULT NULL, CHANGE COLUMN `notAfter` `notAfter` DATE NULL DEFAULT NULL; -- +goose Down -- SQL section 'Down' is executed when this migration is rol...
Create table with all the datas
DROP TABLE IF EXISTS ER_waits; CREATE TABLE ER_waits (PRIMARY KEY (provider_id)) SELECT DISTINCT a.provider_id, a.hospital_name, b.HospitalName AS ajc_hospital_name, a.address, a.city, a.state, a.zip_code, ...
Create command for current mysql table
CREATE TABLE `users` ( `idusers` int(11) NOT NULL AUTO_INCREMENT, `email` varchar(254) NOT NULL, `first_name` varchar(45) NOT NULL, `last_name` varchar(45) NOT NULL, `password` varchar(45) NOT NULL, PRIMARY KEY (`idusers`), UNIQUE KEY `idusers_UNIQUE` (`idusers`), UNIQUE KEY `email_UNIQUE` (`email`) ) E...
Set start time for inactive games predating them
-- For games that never had any turns taken, their last action time should be -- a reasonable approximation of the game start time. UPDATE game AS g SET g.start_time = g.last_action_time WHERE g.start_time = 0
Add rollback script for schema V1.3
-- revert record slug='archive' in table preferences_metadata to previous schema version 1.2 begin; update "preferences_metadata" set "schema" = 'object { boolean enabled; array [ string [ "JSON", "XML" ]; ] {1,2} data_format; string default_archive_contai...
Add self reference to ACCOUNTS table.
ALTER TABLE "PUBLIC"."ACCOUNTS" ADD COLUMN "PARENT_ID" BIGINT NULL ; ALTER TABLE "PUBLIC"."ACCOUNTS" ADD CONSTRAINT FK_ACCOUNTS FOREIGN KEY (PARENT_ID) REFERENCES "PUBLIC"."ACCOUNTS"(ACCOUNT_ID) ; CREATE INDEX SYS_IDX_10119 ON "PUBLIC"."ACCOUNTS"(PARENT_ID) ;
Add script to populate database
CREATE TABLE breeds ( name varchar(30) UNIQUE, type varchar(30), lifeExpectancy INT, origin varchar(30) ); INSERT INTO breeds VALUES ('poodle', 'sporting', 14, 'Germany');
Add database table for keeping track of labels on events
/* Copyright 2019 The Matrix.org Foundation C.I.C. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
Update kunnat to more generic layer
UPDATE oskari_maplayer SET name = 'tilastointialueet:kunta4500k' WHERE type = 'statslayer' AND name = 'tilastointialueet:kunta4500k_2017';
Add SQL script to delete etalabot activities.
create index idx_activity_user_id on activity (user_id); create index idx_activity_detail_activity_id on activity_detail (activity_id); delete from activity_detail where activity_id in (select id from activity where user_id in (select id from "user" where name = 'etalabot')); delete from activity where user_id in (sel...
Add SQL for customers example
-- phpMyAdmin SQL Dump -- version 4.2.7.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Aug 20, 2015 at 02:33 am -- Server version: 5.6.20 -- PHP Version: 5.5.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
Reduce consequence_terms in motif_feature_variation and regulatory_feature_variation tables
# Update consequence_types in motif_feature_variation and regulatory_feature_variation tables # Only store SO_terms that can be assigned to a variant overlapping a regulatory region ALTER TABLE motif_feature_variation MODIFY consequence_types SET ( 'TF_binding_site_variant', 'TFBS_ablation', ...
Add search route II (route coord generation) (api)
UPDATE routes AS nroute JOIN ( SELECT route.id AS id, AVG(stop.lat) AS lat, AVG(stop.lng) AS lng FROM routes AS route JOIN trips AS trip ON trip.route_id = route.id JOIN stop_times AS time ON time.trip_id = trip.id JOIN stops AS stop ON stop.id = time.stop_id GROUP BY route.id ) AS coords ON coords.id = ...
Set management network in upgrade
UPDATE network_cluster nc1 SET management = TRUE WHERE network_id IN (SELECT id FROM network WHERE name = (SELECT COALESCE((SELECT option_value FROM vdc_options WHERE option_...
Add table definition to store (failed) token attempts
CREATE TABLE if not exists gems__token_attempts ( gta_id_attempt bigint unsigned not null auto_increment, gta_id_token varchar(9) CHARACTER SET 'utf8' COLLATE 'utf8_general_ci' not null, gta_ip_address int(11) unsigned not null, gta_datetime timestamp not null, PRIMARY K...
Add the first migration, to create the tasks table in H2 database
CREATE TABLE tasks ( id INT (11) PRIMARY KEY AUTO_INCREMENT, title VARCHAR(200) NOT NULL, description TEXT DEFAULT '', status TINYINT NOT NULL DEFAULT 0, created_at DATETIME NOT NULL DEFAULT NOW() );
Add test cases for creating index
-- Create a nonclustered index on a table or view CREATE INDEX i1 ON t1 (col1); --Create a clustered index on a table and use a 3-part name for the table CREATE CLUSTERED INDEX i1 ON d1.s1.t1 (col1); -- Create a nonclustered index with a unique constraint on 3 columns and specify the sort order for each colum...