mirror of
https://codeberg.org/vlw/vlw.se.git
synced 2025-11-05 07:02:41 +01:00
feat: export static database data for version control and seeding
This commit is contained in:
parent
e8a81b789b
commit
ae8702f866
4 changed files with 189 additions and 12 deletions
16
install.sh
16
install.sh
|
|
@ -92,20 +92,12 @@ seed_databases() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Seed the main database
|
# Seed the main database
|
||||||
mysql -h "$database_seed_host" -u "$database_seed_user" --password="$database_seed_password" $DB_VLW < src/Database/Seeds/vlw.sql
|
mysql -h "$database_seed_host" -u "$database_seed_user" --password="$database_seed_password" $DB_VLW < src/Database/Seeds/vlw.sql # Structure
|
||||||
|
mysql -h "$database_seed_host" -u "$database_seed_user" --password="$database_seed_password" $DB_VLW < src/Database/Seeds/data/vlw.sql # Data
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
echo_err "Installation aborted: MySQL error"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Seed the API database
|
# Seed the API database
|
||||||
mysql -h "$database_seed_host" -u "$database_seed_user" --password="$database_seed_password" $DB_API < src/Database/Seeds/api.sql
|
mysql -h "$database_seed_host" -u "$database_seed_user" --password="$database_seed_password" $DB_API < src/Database/Seeds/api.sql # Structure
|
||||||
|
mysql -h "$database_seed_host" -u "$database_seed_user" --password="$database_seed_password" $DB_API < src/Database/Seeds/data/vlw_reflect.sql # Data
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
echo_err "Installation aborted: MySQL error"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
configure_vlw() {
|
configure_vlw() {
|
||||||
|
|
|
||||||
23
src/Database/Seeds/data/README.md
Normal file
23
src/Database/Seeds/data/README.md
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
# Exporting from phpMyAdmin
|
||||||
|
The following settings should be changed from their default setting when exporting from phpMyAdmin:
|
||||||
|
|
||||||
|
1. Enable export method "Custom" (under "Export method").
|
||||||
|
2. Don't export database structure by unchecking the "Select all" checkbox for "Structure" (under "Tables").
|
||||||
|
3. Uncheck the "Select all" checkbox for "Data" (under "Tables") and check only these checkboxses: ["Tables to export"](#tables-to-export).
|
||||||
|
4. Disable comments by setting "Display comments" to false (under "Format-specific options").
|
||||||
|
5. Enable "Truncate table before insert" (under "Format-specific options" and "Data creation options").
|
||||||
|
|
||||||
|
# Tables to export
|
||||||
|
Export only the following database tables:
|
||||||
|
|
||||||
|
## vlw
|
||||||
|
- `work`
|
||||||
|
- `work_tags`
|
||||||
|
- `work_actions`
|
||||||
|
|
||||||
|
## vlw_reflect
|
||||||
|
- `acl`
|
||||||
|
- `users`
|
||||||
|
- `groups`
|
||||||
|
- `endpoints`
|
||||||
|
- `rel_users_groups`
|
||||||
120
src/Database/Seeds/data/vlw.sql
Normal file
120
src/Database/Seeds/data/vlw.sql
Normal file
|
|
@ -0,0 +1,120 @@
|
||||||
|
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
||||||
|
START TRANSACTION;
|
||||||
|
SET time_zone = "+00:00";
|
||||||
|
|
||||||
|
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
||||||
|
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
||||||
|
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
||||||
|
/*!40101 SET NAMES utf8mb4 */;
|
||||||
|
|
||||||
|
|
||||||
|
TRUNCATE TABLE `work`;
|
||||||
|
INSERT INTO `work` (`id`, `namespace`, `title`, `summary`, `date_created`) VALUES
|
||||||
|
('07f2f481-61b7-43dc-8824-b69403fc66e3', 'vlw/php-mime-types', 'vlw/php-mime-types', 'Library for resolving a RFC 4288-compatible MIME-type list. After loading a list, files on disk can be queried for types and extensions.', '2024-10-27 00:00:00'),
|
||||||
|
('09d8110e-86d2-4025-964c-67ab708292e0', 'itg/lan', 'Reservation website for ITG-Sundbyberg', 'Redesign of IT-Gymnasiet Sundbyberg\'s seat reservation system, tournament registration, and information website for their yearly LAN events.', '2014-09-02 00:00:00'),
|
||||||
|
('0a03eb77-cee8-444f-89ba-c405f6c044a7', 'vlw/labylib', 'LabyLib', 'Library for controlling LabyMod cosmetics programmatically in Python.', '2020-11-11 00:00:00'),
|
||||||
|
('16c78bcc-6e19-42f8-bdae-f733bdcea7b4', 'vlw/ion-musik', 'Website for ION Musik', 'Portable front-end website for Greek musican, ION Musik.', '2015-06-11 00:00:00'),
|
||||||
|
('1ff9b0f5-81fb-4f4c-a410-d52916c767fb', 'deltaco/reseller-form', 'Customer registration form for Deltaco', 'Custom web form which integrated with existing back-end infrastructure to handle new authorized resellers of Deltaco\'s assortment.', '2020-08-04 00:00:00'),
|
||||||
|
('21be561a-6744-4b70-bc87-d25a2fe4f9df', 'vlw/stadia-avatar', 'vlw/stadia-avatar', '', '2021-02-03 00:00:00'),
|
||||||
|
('22af241c-b9d3-4a72-b6b6-608c9428b8d5', 'vlw/labylib-animated-cape', 'vlw/labylib-animated-cape', 'Minecraft cosmetics scripts for my labylib library that cycles between a set of Labymod capes, creating a (slow) animation.', '2020-11-15 00:00:00'),
|
||||||
|
('260cc78f-7111-46e0-b3f4-f8de25357de5', 'vlw/still-alive', 'Still Alive', 'I recreated the end credits from the video game Portal using pure JavaScript and browser windows. It was created using my [abandoned] animation library and some patience. It\'s not perfect, it notably has a few time-drifting issues.', '2021-10-12 00:00:00'),
|
||||||
|
('2881efd5-ec56-4508-b8d9-12ed4db0d12b', 'icellate/website', 'Website for iCellate Medical', 'Together with the iCellate team, I created a new front-end for the biopharma startup using my Vegvisir framework as the foundation.', '2023-04-19 00:00:00'),
|
||||||
|
('29e52286-6a6c-42ae-b4a6-f25b3d0b0101', 'deltaco/office', 'Product guide for Deltaco Office', 'Product configurator of my own design for Deltaco\'s \"Deltaco Office\"-line of products. The configurator is open source and was implemented by various big-name brands of resellers across the nordics.', '2020-09-04 00:00:00'),
|
||||||
|
('2a6f91b8-a46d-4542-90da-e5dbc4ad1660', 'vlw/php-sqlite', 'vlw/php-sqlite', 'Abstraction library for common DML queries on an SQLite database with php-sqlite3.', '2023-04-18 00:00:00'),
|
||||||
|
('30fbdcce-5c47-416e-a232-c60704826ad3', 'vlw/labylib-chattycape', 'vlw/labylib-chattycape', 'Minecraft cosmetics update script for my labylib library that drew a picture of the last person who sent something in chat.', '2020-11-15 00:00:00'),
|
||||||
|
('32cef1f4-cc33-4145-a11f-b2eaeb484f2e', 'vlw/vlw.se', 'vlw.se', 'Can I put my own website here, is that cheating? Maybe, but I think this site counts as the most important thing I\'ve personally created. I\'ve only used my own libraries and frameworks to create this website, so it kind of works as a live demonstration of many of my web projects bundled together.', '2023-06-13 00:00:00'),
|
||||||
|
('498f10c2-e5bf-4a85-a171-b498ad7c6e4e', 'deltaco/e-charge', 'Product guide for Deltaco E-Charge', 'Front- and back-end for a product configurator from a design mock-up created by one of SweDeltaco\'s graphics designers. The configurator was for Deltaco\'s \"E-charge\"-line of EV-charger products.', '2021-04-06 00:00:00'),
|
||||||
|
('5f3a9825-c535-4006-a154-b2541805dda3', 'vlw/php-xenum', 'vlw/php-xenum', 'Adds a variety of missing quality-of-life methods to PHP 8.0 Enums.', '2023-06-12 00:00:00'),
|
||||||
|
('6a39f35a-965f-4a5e-8c66-5381255e051f', 'vlw/reflect', 'Reflect', 'A weird framework for building REST APIs in PHP with focus on native internal request routing and proxying.', '2022-11-18 00:00:00'),
|
||||||
|
('6caf7e3b-40a2-45c3-bbca-3d9b87aedb1f', 'vlw/vegvisir', 'Vegvisir', 'Web navigation framework for PHP websites that does on the fly MPA-to-SPA routing between pages on the [open] web seas.', '2022-11-26 00:00:00'),
|
||||||
|
('6edc486b-f389-4a9b-ac5e-b9d555aad2c8', 'vlw/php-mysql', 'vlw/php-mysql', 'Yet another abstraction library for the php-mysql extension. For this library, I was willing to sacrifice most of MySQL\'s flexibility that comes with string interpolation in favor of method chaining that adheres to an SQL-like syntax. For simple DML operations I think it\'s pretty intuitive.', '2023-04-08 00:00:00'),
|
||||||
|
('6f8fd5f3-af93-467d-998e-7785784999d7', 'vlw/disneyplus-pip', 'vlw/disneyplus-pip', 'Enable (or rather disable Disney\'s block of) picture-in-picture on disneyplus.com for Chrome.', '2021-01-31 00:00:00'),
|
||||||
|
('7c94a316-d014-4a32-a540-e24f7f0024dc', 'vlw/php-functionflags', 'vlw/php-functionflags', '', '2023-03-16 00:00:00'),
|
||||||
|
('7e2638a6-3a5f-4658-a2e1-16ff304a7024', 'icellate/genemate', 'Website for GeneMate by iCellate Medical', 'Together with copy written by the marketing team at iCellate, and a new brand new appearance for the company, I helped design a new website and underlying systems for their GeneMate product.', '2022-11-07 00:00:00'),
|
||||||
|
('85ba311c-a393-48d2-ab87-657c8935b70f', 'vlw/edkb', 'vlw/edkb', 'Printable keyboard overlay for some controls in Elite Dangerous.', '2021-03-18 00:00:00'),
|
||||||
|
('9c5cd7f2-60b6-421c-941a-2a63e926b018', 'vlw/php-age', 'vlw/php-age', 'Asymmetric encryption and decryption of files from PHP with this wrapper for the age command line tool.', '2023-08-22 00:00:00'),
|
||||||
|
('9d554f30-4cc6-428e-b9e8-b89b7f292eae', 'vlw/bbcb', 'Big Black Coffee Button', 'A very simple PWA for updating the \"coffe tally\" on my about page from anywhere in the world whenever I have a cup of coffee!', '2025-03-13 00:00:00'),
|
||||||
|
('a29a4e6c-351b-4812-87a3-6e802f14a1b3', 'vlw/php-globalsnapshot', 'vlw/php-globalsnapshot', '\"Proxy\" PHP superglobals by taking snapshots of current values. The snapshotted state can then be restored at any point.', '2024-04-18 00:00:00'),
|
||||||
|
('b5534b3c-1ac0-462a-ae5f-e73ae05ebc6b', 'deltaco/pdf-generator', 'PDF datasheet generator for Deltaco', 'Custom PDF generator for SharePoint 2013', '2020-09-04 00:00:00'),
|
||||||
|
('b785df54-c2f5-4f45-a4d0-549db85dfb8e', 'vlw/misskey-microblogger', 'vlw/misskey-microblogger', 'Bot program for Misskey (and compatible forks) that simulates a whole community of independent microbloggers with posts, reactions, and replies. Users have unique personalities, friend groups, partners, and even enemies to whom they will act and respond differently to, sometimes not at all.', '2024-11-09 00:00:00'),
|
||||||
|
('bb3337cf-b9e5-4e5a-976a-338b86b2e276', 'deltaco/distit', 'WordPress modules for DistIT', 'Maintenance of a web server for DistIT\'s WordPress website. DistIT is the parent company of SweDeltaco where I was employed for a few years. In addition to server maintenance, I also wrote a few custom WordPress modules for the site, and helped update DistIT\'s custom WordPress theme with new content when required.', '2021-01-21 00:00:00'),
|
||||||
|
('bd814602-40e3-49ef-92d3-2cdb95834e9b', 'vlw/collage', 'vlw/collage', 'Create an image where each \"pixel\" is a smaller image of similar color to the original image.', '2021-03-21 00:00:00'),
|
||||||
|
('be8e3204-0e16-4af5-b363-f2d1b7ec4cd2', 'deltaco/asyncapp', 'Campaign pages for Deltaco', 'From design mock-ups created by the SweDeltaco marketing team, I built various web pages for campagins and special events for the nordic IT-distributor\'s website using a custom content injection framework for SharePoint that would later inspire my other project, Vegvisir.', '2020-10-18 00:00:00'),
|
||||||
|
('c0e7a656-dca6-4716-9984-3c71df15b288', 'vlw/camera-obscura', 'cameraobscura.gr', 'Portable front-end website for Camera Obscura GR', '2018-04-25 00:00:00'),
|
||||||
|
('d69dd968-2395-45df-9618-cd62ab73f3c3', 'vlw/href', 'API-managed permalink redirector/URL shortener', 'This is a simple API-managed permalink generator/URL shortener that I created to hotlink resources for my projects. Permalink destinations can be altered if the target resource needs to be moved. Permalinks can also replace other permalinks with native inheritance at the database-level', '2025-02-09 00:00:00'),
|
||||||
|
('da2968ba-54a8-4924-b52c-1ee07d5a7123', 'vlw/elevent', 'vlw/elevent', 'A small npm module that is intended to add more control over event listeners on HTMLElements with JavaScript. Kind of a superset of addEventListener.', '2024-11-11 00:00:00'),
|
||||||
|
('e5f9a5dc-294e-450b-b97b-9714a1b5f972', 'itg/upload', 'Web project upload for ITG-Sundbyberg', 'Special school assignment for my Web programming course at IT-Gymnasiet Sundbyberg', '2014-06-11 00:00:00'),
|
||||||
|
('eabd7e18-113f-409f-b954-7f86ebcebe06', 'vlw/eyeart', 'eyeart.me', 'Website designed by me for the Greek/Swedish photographer, eyeart. The website features albums, a blog, and news pages.', '2014-03-02 00:00:00'),
|
||||||
|
('f2714dc8-77c2-4b36-b3ea-29b9694d33c0', 'vlw/pysheeter', 'Pysheeter', 'Sprite sheet generator for PNGs in Python.', '2020-11-20 00:00:00'),
|
||||||
|
('f60fb61f-98ee-42dc-a1c2-51a9aadc4e7c', 'vlw/curl', 'cURL wrapper Bash script', 'Public domain shell script optimized to be run in a Visual Studio Code-like interface that wraps cURL on any system with Bash installed. I created it to make manual requests for Reflect endpoints with API Bearer token keys.', '2025-02-09 00:00:00'),
|
||||||
|
('f68b9ae0-2e63-46d9-9c14-428ccf77a2b7', 'vlw/dediprison', 'DediPrison', 'Public Minecraft server project together with a friend that had around 20-30 active monthly players.', '2015-10-13 00:00:00'),
|
||||||
|
('fa14c074-83c3-43b9-9246-4c68e683ba39', 'vlw/monkeydo', 'MonkeyDo', 'A multi-threaded keyframe animation library for JavaScript.', '2021-10-08 00:00:00');
|
||||||
|
|
||||||
|
TRUNCATE TABLE `work_actions`;
|
||||||
|
INSERT INTO `work_actions` (`id`, `ref_work_id`, `order_idx`, `href`, `text`, `classlist`, `icon_prepend`, `icon_append`) VALUES
|
||||||
|
('072c6ea1-4937-48eb-902f-79b68dd90046', 'fa14c074-83c3-43b9-9246-4c68e683ba39', 0, 'https://codeberg.org/vlw/monkeydo', 'view source', NULL, 'codeberg.svg', NULL),
|
||||||
|
('078b9b3c-7eee-4e79-9984-d7a3bc626c99', 'd69dd968-2395-45df-9618-cd62ab73f3c3', 0, 'https://codeberg.org/vlw/href', 'view source', NULL, 'codeberg.svg', NULL),
|
||||||
|
('0b207bb1-06bc-42c6-8166-a2b3a007efd9', '32cef1f4-cc33-4145-a11f-b2eaeb484f2e', 0, 'https://codeberg.org/vlw/vlw.se', 'view source', NULL, 'codeberg.svg', NULL),
|
||||||
|
('0bb7b972-99a1-4265-8893-99c0a7ad0fa2', '85ba311c-a393-48d2-ab87-657c8935b70f', 0, 'https://codeberg.org/vlw/edkb', 'view source', NULL, 'codeberg.svg', NULL),
|
||||||
|
('250ed810-1b34-4a4f-986b-3894bdcf9e6d', 'f60fb61f-98ee-42dc-a1c2-51a9aadc4e7c', 0, 'https://codeberg.org/vlw/curl', 'view source', NULL, 'codeberg.svg', NULL),
|
||||||
|
('2dc38a5d-97b5-4ba9-848f-4398300031b0', '9c5cd7f2-60b6-421c-941a-2a63e926b018', 0, 'https://codeberg.org/vlw/php-age', 'view source', NULL, 'codeberg.svg', NULL),
|
||||||
|
('33b02f13-cfa3-4b09-bca3-50233739cec9', 'a29a4e6c-351b-4812-87a3-6e802f14a1b3', 0, 'https://codeberg.org/vlw/php-globalsnapshot', 'view source', NULL, 'codeberg.svg', NULL),
|
||||||
|
('52c9fa65-241b-439d-99ad-69c34f3e766d', '6edc486b-f389-4a9b-ac5e-b9d555aad2c8', 0, 'https://codeberg.org/vlw/php-mysql', 'view source', NULL, 'codeberg.svg', NULL),
|
||||||
|
('55566fd8-db34-4e4d-8838-3b42e3a71332', '7c94a316-d014-4a32-a540-e24f7f0024dc', 0, 'https://codeberg.org/vlw/functionflags', 'view source', NULL, 'codeberg.svg', NULL),
|
||||||
|
('57ccfdd3-2d18-4623-8d84-db4b0a9c2e0c', '0a03eb77-cee8-444f-89ba-c405f6c044a7', 0, 'https://codeberg.org/vlw/labylib', 'view source', NULL, 'codeberg.svg', NULL),
|
||||||
|
('5c9982a0-4156-4aff-b6de-c9e04059cd7c', '5f3a9825-c535-4006-a154-b2541805dda3', 0, 'https://codeberg.org/vlw/php-xenum', 'view source', NULL, 'codeberg.svg', NULL),
|
||||||
|
('71b3b819-4b00-461e-be05-bcdd5f511fed', '6f8fd5f3-af93-467d-998e-7785784999d7', 0, 'https://codeberg.org/vlw/disneyplus-pip', 'view source', NULL, 'codeberg.svg', NULL),
|
||||||
|
('78acbecc-e35e-44bf-a568-11338be41c85', '260cc78f-7111-46e0-b3f4-f8de25357de5', 0, 'https://codeberg.org/vlw/still-alive', 'view source', NULL, 'codeberg.svg', NULL),
|
||||||
|
('806c3e69-9e17-4b10-b800-819da46cfd7d', 'bd814602-40e3-49ef-92d3-2cdb95834e9b', 0, 'https://codeberg.org/vlw/collage', 'view source', NULL, 'codeberg.svg', NULL),
|
||||||
|
('8a45fc1f-e4fa-4742-985b-96545f87cc36', '07f2f481-61b7-43dc-8824-b69403fc66e3', 0, 'https://codeberg.org/vlw/php-mime-types', 'view source', NULL, 'codeberg.svg', NULL),
|
||||||
|
('b6a76c26-612e-41ed-8721-e9530e070bbb', 'f2714dc8-77c2-4b36-b3ea-29b9694d33c0', 0, 'https://codeberg.org/vlw/pysheeter', 'view source', NULL, 'codeberg.svg', NULL),
|
||||||
|
('d0bcdbc6-8177-4090-8d8e-6f4e2d401984', 'b785df54-c2f5-4f45-a4d0-549db85dfb8e', 0, 'https://codeberg.org/vlw/misskey-microblogger', 'view source', '', 'codeberg.svg', NULL),
|
||||||
|
('e7c885f7-04e6-4e81-b73a-cbb45131e346', '9d554f30-4cc6-428e-b9e8-b89b7f292eae', 0, 'https://codeberg.org/vlw/big-black-coffee-button', 'view source', NULL, 'codeberg.svg', NULL),
|
||||||
|
('e807ae64-5b6b-4f6b-b5b1-3a33fb683517', '2a6f91b8-a46d-4542-90da-e5dbc4ad1660', 0, 'https://codeberg.org/vlw/php-sqlite', 'view source', NULL, 'codeberg.svg', NULL),
|
||||||
|
('eea4d761-b130-4093-9c7a-49a462427295', 'da2968ba-54a8-4924-b52c-1ee07d5a7123', 0, 'https://codeberg.org/vlw/elevent', 'view source', NULL, 'codeberg.svg', NULL);
|
||||||
|
|
||||||
|
TRUNCATE TABLE `work_tags`;
|
||||||
|
INSERT INTO `work_tags` (`id`, `ref_work_id`, `label`) VALUES
|
||||||
|
('0c5cfd60-43b1-4f53-9fcb-115e14b9a6e3', '7c94a316-d014-4a32-a540-e24f7f0024dc', 'VLW'),
|
||||||
|
('12657f98-896e-480b-9ca5-c8b3f50abb3b', '6caf7e3b-40a2-45c3-bbca-3d9b87aedb1f', 'VLW'),
|
||||||
|
('1281055c-a0e6-435c-9dae-f1a6dc39ef9d', 'c0e7a656-dca6-4716-9984-3c71df15b288', 'WEBSITE'),
|
||||||
|
('191ebc16-d32b-46d1-8f99-cbe89c9bc137', '6f8fd5f3-af93-467d-998e-7785784999d7', 'VLW'),
|
||||||
|
('1bac07d2-2c53-4d2b-b2f5-1d07f9044652', '07f2f481-61b7-43dc-8824-b69403fc66e3', 'VLW'),
|
||||||
|
('1c4ba8d8-cec6-4339-aff3-8eca32883c85', '09d8110e-86d2-4025-964c-67ab708292e0', 'WEBSITE'),
|
||||||
|
('20a5f3eb-c2ab-4ccc-95e3-530ac1381f93', '9c5cd7f2-60b6-421c-941a-2a63e926b018', 'VLW'),
|
||||||
|
('24021b57-16fd-47a6-b367-0555d2f2dc9a', 'bb3337cf-b9e5-4e5a-976a-338b86b2e276', 'WEBSITE'),
|
||||||
|
('3493a4ac-feb1-4fc1-8bf5-529d7d30841b', 'b5534b3c-1ac0-462a-ae5f-e73ae05ebc6b', 'REPO'),
|
||||||
|
('452d00b7-c29c-4173-82db-c04206dc2deb', '7e2638a6-3a5f-4658-a2e1-16ff304a7024', 'WEBSITE'),
|
||||||
|
('50a9959b-07b1-402b-a677-d63c9d3a1fba', 'b785df54-c2f5-4f45-a4d0-549db85dfb8e', 'VLW'),
|
||||||
|
('52bc18a3-9663-4b92-acd0-1b48657854c9', '498f10c2-e5bf-4a85-a171-b498ad7c6e4e', 'WEBSITE'),
|
||||||
|
('545774e3-9e1f-4b8e-a8e8-2223744d62cb', '85ba311c-a393-48d2-ab87-657c8935b70f', 'VLW'),
|
||||||
|
('572dea97-8d3b-4da9-872a-ae23873627f7', 'bd814602-40e3-49ef-92d3-2cdb95834e9b', 'VLW'),
|
||||||
|
('5e6fd215-7e99-4dc2-8a8d-fd30079909d5', '29e52286-6a6c-42ae-b4a6-f25b3d0b0101', 'WEBSITE'),
|
||||||
|
('688608f0-72e7-4946-a79e-d0e7c4357c68', 'da2968ba-54a8-4924-b52c-1ee07d5a7123', 'VLW'),
|
||||||
|
('6db8f8ce-7f62-40e0-8daf-df21d3339f84', '1ff9b0f5-81fb-4f4c-a410-d52916c767fb', 'WEBSITE'),
|
||||||
|
('70ddb4bd-7a32-4a0b-9231-47cb0f731f08', 'd69dd968-2395-45df-9618-cd62ab73f3c3', 'VLW'),
|
||||||
|
('7749e896-bbbe-4a4a-93b0-19ee29e8d155', 'e5f9a5dc-294e-450b-b97b-9714a1b5f972', 'WEBSITE'),
|
||||||
|
('789dd276-fd60-459d-80c1-23c62f2a5b46', 'f60fb61f-98ee-42dc-a1c2-51a9aadc4e7c', 'VLW'),
|
||||||
|
('7b3ce564-f11b-481f-b163-60d092511ea1', 'f2714dc8-77c2-4b36-b3ea-29b9694d33c0', 'VLW'),
|
||||||
|
('807778df-d709-42a0-8813-2e5448b1e210', '2881efd5-ec56-4508-b8d9-12ed4db0d12b', 'WEBSITE'),
|
||||||
|
('916972f9-85d0-4930-95e2-fc745b3d0e06', '6a39f35a-965f-4a5e-8c66-5381255e051f', 'VLW'),
|
||||||
|
('91768f21-02a4-4474-9496-03757f121a4b', '16c78bcc-6e19-42f8-bdae-f733bdcea7b4', 'WEBSITE'),
|
||||||
|
('999634d5-8a59-4974-8cab-5b372e3eac11', 'a29a4e6c-351b-4812-87a3-6e802f14a1b3', 'VLW'),
|
||||||
|
('a31ce392-e128-447f-8c2b-6c411febb4fd', 'f68b9ae0-2e63-46d9-9c14-428ccf77a2b7', 'VLW'),
|
||||||
|
('a4ac5f60-9002-46ea-9b04-bb6ac38540d5', '5f3a9825-c535-4006-a154-b2541805dda3', 'VLW'),
|
||||||
|
('a5f596a4-aa1e-4e2c-a749-19568f8a4337', '6edc486b-f389-4a9b-ac5e-b9d555aad2c8', 'VLW'),
|
||||||
|
('add826fd-5614-4b22-85ef-9ea60d18d5e5', '22af241c-b9d3-4a72-b6b6-608c9428b8d5', 'VLW'),
|
||||||
|
('b098e4f1-5387-4f96-82aa-692bbbd225c9', '21be561a-6744-4b70-bc87-d25a2fe4f9df', 'VLW'),
|
||||||
|
('b37d53b3-20b6-412a-943b-bf0260f820c0', '260cc78f-7111-46e0-b3f4-f8de25357de5', 'VLW'),
|
||||||
|
('be61d2b1-6f08-4473-80a6-78d8a31cfe25', '0a03eb77-cee8-444f-89ba-c405f6c044a7', 'VLW'),
|
||||||
|
('c49d42b3-0bec-4fa8-ba12-0f270afb9771', '9d554f30-4cc6-428e-b9e8-b89b7f292eae', 'VLW'),
|
||||||
|
('c8111140-b336-4ecb-9237-492f51b1e634', 'eabd7e18-113f-409f-b954-7f86ebcebe06', 'WEBSITE'),
|
||||||
|
('ca1fbf49-030b-4d83-a61e-f85681e8641b', 'fa14c074-83c3-43b9-9246-4c68e683ba39', 'VLW'),
|
||||||
|
('e74b4cc3-6e3f-4c12-8c94-af7a0e304a49', '2a6f91b8-a46d-4542-90da-e5dbc4ad1660', 'VLW'),
|
||||||
|
('f5fe95c9-380b-4296-aee8-c62b91184faf', 'be8e3204-0e16-4af5-b363-f2d1b7ec4cd2', 'REPO'),
|
||||||
|
('fc9465cc-7cf0-4a93-a351-e226c9fcebf4', '30fbdcce-5c47-416e-a232-c60704826ad3', 'VLW');
|
||||||
|
COMMIT;
|
||||||
|
|
||||||
|
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||||
|
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
||||||
|
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||||
42
src/Database/Seeds/data/vlw_reflect.sql
Normal file
42
src/Database/Seeds/data/vlw_reflect.sql
Normal file
|
|
@ -0,0 +1,42 @@
|
||||||
|
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
||||||
|
START TRANSACTION;
|
||||||
|
SET time_zone = "+00:00";
|
||||||
|
|
||||||
|
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
||||||
|
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
||||||
|
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
||||||
|
/*!40101 SET NAMES utf8mb4 */;
|
||||||
|
|
||||||
|
|
||||||
|
TRUNCATE TABLE `acl`;
|
||||||
|
INSERT INTO `acl` (`ref_group`, `ref_endpoint`, `method`) VALUES
|
||||||
|
(NULL, 'coffee', 'GET'),
|
||||||
|
(NULL, 'languages', 'GET'),
|
||||||
|
(NULL, 'update', 'GET'),
|
||||||
|
(NULL, 'work', 'GET'),
|
||||||
|
('vlw', 'coffee', 'POST'),
|
||||||
|
('vlw', 'coffee', 'DELETE');
|
||||||
|
|
||||||
|
TRUNCATE TABLE `endpoints`;
|
||||||
|
INSERT INTO `endpoints` (`id`, `active`) VALUES
|
||||||
|
('coffee', 1),
|
||||||
|
('languages', 1),
|
||||||
|
('update', 1),
|
||||||
|
('work', 1);
|
||||||
|
|
||||||
|
TRUNCATE TABLE `groups`;
|
||||||
|
INSERT INTO `groups` (`id`, `active`, `date_created`) VALUES
|
||||||
|
('vlw', 1, 0);
|
||||||
|
|
||||||
|
TRUNCATE TABLE `rel_users_groups`;
|
||||||
|
INSERT INTO `rel_users_groups` (`ref_user`, `ref_group`) VALUES
|
||||||
|
('vlw', 'vlw');
|
||||||
|
|
||||||
|
TRUNCATE TABLE `users`;
|
||||||
|
INSERT INTO `users` (`id`, `active`, `created`) VALUES
|
||||||
|
('vlw', 1, 0);
|
||||||
|
COMMIT;
|
||||||
|
|
||||||
|
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||||
|
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
||||||
|
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||||
Loading…
Add table
Reference in a new issue