This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
onny:notizen:programmierung [2022/02/22 13:26] – [postgresql] 46.223.163.98 | onny:notizen:programmierung [2022/03/18 22:17] – old revision restored (2022/03/07 13:26) 2a01:4f9:4b:19e9::2 | ||
---|---|---|---|
Line 259: | Line 259: | ||
<code javascript> | <code javascript> | ||
var string = string.substring(0, | var string = string.substring(0, | ||
+ | </ | ||
+ | |||
+ | vanilla js onclick class element | ||
+ | <code javascript> | ||
+ | document.getElementsByClassName(' | ||
+ | console.log(' | ||
+ | }; | ||
</ | </ | ||
==== vuejs ==== | ==== vuejs ==== | ||
Line 571: | Line 578: | ||
[...] | [...] | ||
+ | | ||
+ | endif; | ||
+ | |||
+ | add_action( ' | ||
</ | </ | ||
Line 690: | Line 701: | ||
< | < | ||
pg_dump -U gitlab gitlabhq_production > / | pg_dump -U gitlab gitlabhq_production > / | ||
+ | </ | ||
+ | |||
+ | dump all | ||
+ | < | ||
+ | pg_dumpall > / | ||
</ | </ | ||
import database | import database | ||
< | < | ||
- | psql# CREATE DATABASE gitlabhq_production | + | psql# CREATE DATABASE gitlabhq_production; |
psql -U gitlab gitlabhq_production < gitlab.pgsql | psql -U gitlab gitlabhq_production < gitlab.pgsql | ||
</ | </ | ||
Line 702: | Line 718: | ||
DROP ROLE gitlab; | DROP ROLE gitlab; | ||
CREATE USER gitlab WITH PASSWORD ' | CREATE USER gitlab WITH PASSWORD ' | ||
+ | </ | ||
+ | |||
+ | grant permissions | ||
+ | < | ||
+ | ALTER USER gitlab SUPERUSER; | ||
+ | CREATE DATABASE gitlabhq_production OWNER gitlab; | ||
+ | ALTER DATABASE gitlabhq_production OWNER TO gitlab; | ||
</ | </ |