github.com/argoproj/argo-cd/v2@v2.10.9/resource_customizations/db.atlasgo.io/AtlasSchema/testdata/degraded.yaml (about) 1 apiVersion: db.atlasgo.io/v1alpha1 2 kind: AtlasSchema 3 metadata: 4 annotations: 5 kubectl.kubernetes.io/last-applied-configuration: | 6 {"apiVersion":"db.atlasgo.io/v1alpha1","kind":"AtlasSchema","metadata":{"annotations":{},"name":"atlasschema-mysql","namespace":"default"},"spec":{"schema":{"sql":"create table users (\n id int not null auto_increment,\n name varchar(255) not null,\n email varchar(255) unique not null,\n short_bio varchar(255) not null,\n primary key (id)\n);\n"},"urlFrom":{"secretKeyRef":{"key":"url","name":"mysql-credentials"}}}} 7 creationTimestamp: "2023-11-15T14:33:18Z" 8 generation: 2 9 name: atlasschema-mysql 10 namespace: default 11 resourceVersion: "46659" 12 uid: 54a4cdfc-e4f9-4c3d-934c-e08b6122e38a 13 spec: 14 schema: 15 sql: | 16 xcreate table users ( 17 id int not null auto_increment, 18 name varchar(255) not null, 19 email varchar(255) unique not null, 20 short_bio varchar(255) not null, 21 primary key (id) 22 ); 23 urlFrom: 24 secretKeyRef: 25 key: url 26 name: mysql-credentials 27 status: 28 conditions: 29 - lastTransitionTime: "2023-11-15T14:38:41Z" 30 message: |- 31 Error: sql/migrate: read migration directory state: sql/migrate: execute: executing statement "xcreate table users (\n id int not null auto_increment,\n name varchar(255) not null,\n email varchar(255) unique not null,\n short_bio varchar(255) not null,\n primary key (id)\n);" from version "schema": Error 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'xcreate table users ( 32 id int not null auto_increment, 33 name varchar(255) not ' at line 1 34 reason: ApplyingSchema 35 status: "False" 36 type: Ready 37 last_applied: 1700058814 38 observed_hash: ddfe666707ddf5c2cc7625c2a0de89da51e54fc7caa6403db307146430d20d85