Title: Support MariaDB UUID type · Issue #3401 · sqlc-dev/sqlc · GitHub
Open Graph Title: Support MariaDB UUID type · Issue #3401 · sqlc-dev/sqlc
X Title: Support MariaDB UUID type · Issue #3401 · sqlc-dev/sqlc
Description: What do you want to change? MariaDB has some extensions over standard MySQL, most notably a UUID type, which currently leads to: internal/datastore/mysql/migrations/schema.sql:4:44: syntax error near "uuid NOT NULL DEFAULT (uuid()), `upl...
Open Graph Description: What do you want to change? MariaDB has some extensions over standard MySQL, most notably a UUID type, which currently leads to: internal/datastore/mysql/migrations/schema.sql:4:44: syntax error ne...
X Description: What do you want to change? MariaDB has some extensions over standard MySQL, most notably a UUID type, which currently leads to: internal/datastore/mysql/migrations/schema.sql:4:44: syntax error ne...
Opengraph URL: https://github.com/sqlc-dev/sqlc/issues/3401
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support MariaDB UUID type","articleBody":"### What do you want to change?\r\n\r\nMariaDB has some extensions over standard MySQL, most notably a UUID type, which currently leads to:\r\n```\r\ninternal/datastore/mysql/migrations/schema.sql:4:44: syntax error near \"uuid NOT NULL DEFAULT (uuid()), `uploaded` datetime NOT NULL DEFAULT (current_timestamp()), `owner` int NOT NULL, PRIMARY KEY (`id`), INDEX `owner` (`owner`), CONSTRAINT `owner` FOREIGN KEY (`owner`) REFERENCES `irori`.`organisations` (`id`) ON UPDATE RESTRICT ON DELETE CASCADE) CHARSET utf8mb4 COLLATE utf8mb4_general_ci;\"\r\n```\r\n\r\nIt would be nice to have it supported.\r\n\r\nThe schema:\r\n```sql\r\n-- Create \"organisations\" table\r\nCREATE TABLE `irori`.`organisations` (`id` int NOT NULL AUTO_INCREMENT, `name` varchar(64) NOT NULL, `description` varchar(255) NOT NULL, PRIMARY KEY (`id`)) CHARSET utf8mb4 COLLATE utf8mb4_general_ci;\r\n-- Create \"documents\" table\r\nCREATE TABLE `irori`.`documents` (`id` uuid NOT NULL DEFAULT (uuid()), `uploaded` datetime NOT NULL DEFAULT (current_timestamp()), `owner` int NOT NULL, PRIMARY KEY (`id`), INDEX `owner` (`owner`), CONSTRAINT `owner` FOREIGN KEY (`owner`) REFERENCES `irori`.`organisations` (`id`) ON UPDATE RESTRICT ON DELETE CASCADE) CHARSET utf8mb4 COLLATE utf8mb4_general_ci;\r\n-- Create \"user\" table\r\nCREATE TABLE `irori`.`user` (`id` int NOT NULL AUTO_INCREMENT, `name` varchar(64) NOT NULL, `token_sub` varchar(128) NOT NULL, PRIMARY KEY (`id`)) CHARSET utf8mb4 COLLATE utf8mb4_general_ci;\r\n-- Create \"user_organisations\" table\r\nCREATE TABLE `irori`.`user_organisations` (`user` int NOT NULL, `organisation` int NOT NULL, `permissions` int NOT NULL, INDEX `organisation` (`organisation`), INDEX `user` (`user`), CONSTRAINT `organisation` FOREIGN KEY (`organisation`) REFERENCES `irori`.`organisations` (`id`) ON UPDATE NO ACTION ON DELETE NO ACTION, CONSTRAINT `user` FOREIGN KEY (`user`) REFERENCES `irori`.`user` (`id`) ON UPDATE NO ACTION ON DELETE NO ACTION) CHARSET utf8mb4 COLLATE utf8mb4_general_ci;\r\n```\r\n\r\n### What database engines need to be changed?\r\n\r\nMySQL\r\n\r\n### What programming language backends need to be changed?\r\n\r\nGo","author":{"url":"https://github.com/mpldr","@type":"Person","name":"mpldr"},"datePublished":"2024-05-27T14:18:47.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/3401/sqlc/issues/3401"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:09570c74-3a24-c80c-73a3-61589637b8ac |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8EE6:C3948:83961F5:B8862F6:6A505C6A |
| html-safe-nonce | a3d6fbb589a5dc397182427bcbc399e90bff6677e5e8f467d2e04f5858323e0e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RUU2OkMzOTQ4OjgzOTYxRjU6Qjg4NjJGNjo2QTUwNUM2QSIsInZpc2l0b3JfaWQiOiI2NjIyOTgyMzEwMDMxNzYwNDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ab8b56e97642c319ffeafe260f949b5657425e60f8586a7d8c3c4c68c5bb73fa |
| hovercard-subject-tag | issue:2319275853 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/sqlc-dev/sqlc/3401/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e5887bc81a6bccf68fc7ee0ea026f36ab0c55e3fadddeae4c757a258ce9110bf/sqlc-dev/sqlc/issues/3401 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e5887bc81a6bccf68fc7ee0ea026f36ab0c55e3fadddeae4c757a258ce9110bf/sqlc-dev/sqlc/issues/3401 |
| og:image:alt | What do you want to change? MariaDB has some extensions over standard MySQL, most notably a UUID type, which currently leads to: internal/datastore/mysql/migrations/schema.sql:4:44: syntax error ne... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mpldr |
| hostname | github.com |
| expected-hostname | github.com |
| None | d6dc8294eb500fa36bbc57472d61fe87c522f9c3c1d64f70f4926f66a66a7efb |
| turbo-cache-control | no-preview |
| go-import | github.com/sqlc-dev/sqlc git https://github.com/sqlc-dev/sqlc.git |
| octolytics-dimension-user_id | 136738596 |
| octolytics-dimension-user_login | sqlc-dev |
| octolytics-dimension-repository_id | 193160679 |
| octolytics-dimension-repository_nwo | sqlc-dev/sqlc |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 193160679 |
| octolytics-dimension-repository_network_root_nwo | sqlc-dev/sqlc |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7ac0ad2f2c7e4b9056617355fd9e33e22b0c8df9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width