Migration: Difference between revisions

From Fundamental Ramen
Jump to navigation Jump to search
Line 11: Line 11:
|-
|-
| Incremental |
| Incremental |
| <source lang="sql">id int8 GENERATED BY DEFAULT AS IDENTITY NOT NULL</source>
| <source lang="sql">
CREATE TABLE public.test (
id1 serial8 NOT NULL,
id2 int8 GENERATED ALWAYS AS IDENTITY NOT NULL,
id3 int8 GENERATED BY DEFAULT AS IDENTITY NOT NULL
);
</source>
| auto incremental
| auto incremental
|
|

Revision as of 03:23, 1 September 2025

Table

Column

[1]

Data Types

Postgres MariaDB SQLite
CREATE TABLE public.test (
	id1 serial8 NOT NULL,
	id2 int8 GENERATED ALWAYS AS IDENTITY NOT NULL,
	id3 int8 GENERATED BY DEFAULT AS IDENTITY NOT NULL
);
auto incremental
DateTime

[2]

References